-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Should we add a resultSelector to Observable.from? #1255
Comments
Meh. I don't see Array as the dual of Observable (Enumerable should be).
Meh. (hope Matt doesn't hear this)
Reasonable.
Which is a moving target. Disclaimer: I'm terse, not curt. |
Even though I made #1195 for Observable.from supporting either Also, I don't like the |
@staltz I've got my 👀on you... I think about the efficiency standpoint of conversion for example to use the |
I'm generally pro-resultSelector here. Mostly for the efficiency of it. I'm sure that's the primary reason for it existing in |
Forgive my ignorance but I am wondering what the use-case is for the Is this such a common pattern that the That said, the primary concern for a newcomer such as myself is consistency. The The deciding factor may be whether it is easier to implement the feature than adjust the documentation. |
@bholloway ... the use case is to reduce subscriptions for better performance, mostly. You "map" the value before it's passed into the subscriber (to be output by the observable). |
Just mentioning that the efficiency concern has been mostly addressed in #1323 . In my opinion |
@benjamingr ... it hasn't completely been addressed. The flattening method I've used so far depends on chained operators at this point, and won't really apply to source observables like this one. |
Punting this to the next release since it's still under discussion. |
Closing as stale. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The Good
The Bad
thisArg
(it's there for Array.from)The "meh"
Related #1009, #1166
The text was updated successfully, but these errors were encountered: