Re: [whatwg/dom] Improving ergonomics of events with Observable (#544)

> At the risk starting the bikeshedding wars around the API; would .observe() be a reasonable name for this?

@keithamus Certainly! But there's already a huge amount of industry momentum around `subscribe` as the primary API here. There's also some interesting nuance around what this method does. In all cases, it does *observe*, but in many cases it not only observes, but it also sets up the production of values. In this particular use case (EventTarget), it's only really observing, so the name "observe" makes total sense, but we would be sacrificing a name that makes a little more sense for other use cases of the Observable type as a primitive.



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/544#issuecomment-351491060

Received on Wednesday, 13 December 2017 19:09:29 UTC