mAAdhaTTah / brookjs

reactive programming tools for well-structured, testable applications
https://mAAdhaTTah.github.io/brookjs/
MIT License
15 stars 1 forks source link

Allow swappable Observable implementation #4

Closed mAAdhaTTah closed 6 years ago

mAAdhaTTah commented 8 years ago

This is long-future stuff, but any-observable provides a way for a library author to depend on a generic Observable and allow the consumer to choose which Observable implementation they want to use. Right now, we have a hard dependency on Kefir, and are returning Kefir.Observables for all the library methods. Allowing the library consumers to choose which Observable implementation will allow brookjs to be more flexible. Especially given the popularity of RxJS, I suspect consumers are going to want to use that, although I've found the complexity of dealing with the various builds hard to deal with and much prefer the smaller surface area and semantics of Kefir.

Major Blockers:

mAAdhaTTah commented 6 years ago

We're not going to be able to do this, as I don't think Kefir will ever conform to the ESObservable spec. We can revisit this at some point in the future.