-
Notifications
You must be signed in to change notification settings - Fork 3k
Move core operators onto Observable directly #468
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
Comments
attn @jeffbcross |
There is no point keeping
|
I guess I'm unconvinced that they're as commonly used, even if they are very similar. |
In Cycle.js world, definitely. In other contexts, I don't really know how RxJS is used in Netflix, neither in Angular2. |
Neither do I! Actually, we right now only publish observables for component events, and for http requests. We don't consume them internally, except for in our examples. But the lighter the "core" set of operators can be, the better, as discussed in this issue. |
Yeah, we'll probably have to go back to at least adding stubs for every operator on the Observable type. It's just so ugly. Part of me wonders if it might be better just to switch to ES6 and manually maintain the .d.ts files... |
I've done some work to that effect, that makes consuming the typings easier, and all the stubs only have to go into the operators themselves. |
I think we've decided not to do this. |
As an aside to the discussion on #464 ... We might want to move all core operators directly onto the Observable itself.
I'm on the fence about this one.
... but I'll really want to trim down what is "core". For example,
share()
andmulticast()
should be core, sinceshare
is very commonly used, andmulticast
enables all other variants... butshareReplay
,shareBehavior
,publish
,publishReplay
,publishBehavior
should probably not be "built in", IMO.The text was updated successfully, but these errors were encountered: