- From: Ben Lesh <notifications@github.com>
- Date: Mon, 25 Dec 2023 16:17:38 -0800
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3ctag/design-reviews/issues/902/1869163357@github.com>
> * It would introduce another way to accomplish the same thing, which would confuse beginners and make the platform more complex. We already have callbacks, promises, async/await, events, streams, and generators. Observables are another way to accomplish a lot more than what current methods allow. So "sort of". Callbacks exist in everything else you listed. promises and async await are firmly different concepts and ECMAScript features, not related the DDOM. Events aren't really a construct, but rather something that can be handled by the other things you listed. Generators are wildly different than Observables, they're pull-based where observables are push-based. Async Generators are pull-then-push, and slightly more complicated than observables. Especially when you start talking about coroutines. > * There will always be a shortage of operators. Definitely check out [rxjs.dev/api](https://rxjs.dev/api). IMO, as the lead maintainer of the library, RxJS has too many operators, and we've been deprecating and removing them over the years. > * We are uncertain about how it should work. The popular observables library RxJS is constantly improving and changing. Its internal logic and codebase are not simple. So, why do we assume that the current proposed API will be sufficient for us in the future? I'm very sorry, this part is just plainly false. We haven't added any new operators in years. We've removed a few operators, and a lot of the work that is going into RxJS over the last few years is aimed at simplifying the codebase. In general, outside of "pipeable" operators, RxJS has barely changed in the 10+ years of its existence. The only thing that's really been evolving over this time period is the growing user base of the library. Despite not being funded by any major tech company. Despite not having a dedicated staff, and only being maintained by volunteers. Despite not having an advertising budget, people are choosing RxJS to help them manage coordinating events. And it's not just RxJS. If you checkout the [README](https://github.com/WICG/observable) for the proposal, there are several wildly used projects employing an observable type in their codebase. -- Reply to this email directly or view it on GitHub: https://github.com/w3ctag/design-reviews/issues/902#issuecomment-1869163357 You are receiving this because you are subscribed to this thread. Message ID: <w3ctag/design-reviews/issues/902/1869163357@github.com>
Received on Tuesday, 26 December 2023 00:17:45 UTC