-
Notifications
You must be signed in to change notification settings - Fork 32
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
Update on value change #68
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think latest_change
is the best name for this.
Maybe value_change
? Still not a fan of that either...
Maybe just rename the function to |
|
Maybe |
I think the most important aspect for the name to be discoverable and reasonably intuitive is that it includes the word "change". |
I don't care that much, I think we've entered bikeshedding territory. ... but while we're here, how about debounce_value? I think keeping value is important. |
I don't understand what that means. "debounce"?
Why? The default for |
So after searching for that term, it looks like |
Since there's no consensus, how about we let the author @yha make the decision? I'll throw out |
I was actually thinking about this yesterday. I think it should be a new type (whether that be ChangeObservable or ValueObservable or whatever else). Not using a type seems to disallow off-ing the observable (at least it won't off the inner/wrapped observable). I'll also defer to whatever y'all think, but I don't like using "latest". Maybe go see what Rx calls this and copy that. |
Do you mean removing removing the connection to the wrapped observable? i.e. calling
Rx calls this |
Let's give others a short window to comment and then merge. (Bump if I forget to come back.) |
latest_change(obs)
to only observe value changes. Ref #5