New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename ImmutableObservable
to Observable
#24
Comments
I agree! |
I just created #33 to try to fix this issue. |
Since #33 was merged, I think this issue can now be closed 🙂 |
👌 |
The ImmutableObservable class is great, since it allows you to have a public API in your classes that is safe from external side effects, but the naming semantics are backwards.
The current name would imply that ImmutableObservable is a special kind of Observable that adds immutability, but that's not the case. Instead Observable is a special kind of ImmutableObservable that adds mutability, but that's not apparent from reading the names.
I addition, it litters your public API with extra information. The client shouldn't know or care that the Observable is immutable, that's an implementation detail that makes usages more verbose and less readable.
I suggest flipping the names, so the standard implementation is
Observable
and the subclass isMutableObservable
. That would make the relationship clear and clean up public usages.The text was updated successfully, but these errors were encountered: