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

@jhusain the async/await code looks neat. Seeing that code and in light of @jakearchibald's comments, it's too bad there isn't a way to use async/await without having to defer the callback to microtask time.

On map/filter, I think they make a bigger difference for arrays, because they let you not write out a loop at all. But in the case of Observable, the looping is implicit whether you use map/filter or your mapping and filtering right into your callback.

On the composition angle, can you point to some examples of app code using userspace implementations of Observable that pass around mapped and/or filtered Observables and subscribe them somewhere else? I think I'd have to see an example to understand why this is useful.




-- 
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-351761613

Received on Thursday, 14 December 2017 16:27:56 UTC