leebyron / ecmascript-iterator-hof

Higher Order Functions on Iterators
42 stars 2 forks source link

Async Iterators #2

Open RangerMauve opened 7 years ago

RangerMauve commented 7 years ago

Would it make sense for this proposal to also define the same functions for Async Iterables to kill two birds with one stone?

Having higher order functions on async iterables would make async programming extremely powerful.

leebyron commented 7 years ago

Yeah - I think these functions definitely deserve to belong on both typical and async iterators (should those reach stage 4) - not sure if that should be two separate proposals or one collective proposal.

RangerMauve commented 7 years ago

Since Async Iterators are right on the cusp of being implemented in v8, I think it's safe to say that they will be part of the standard before this proposal hits. If it's possible, I think it would make sense to include Async iterators at the same time to avoid confusion.

zimme commented 7 years ago

The only reason I see for these to be separate proposals is if any of the hofs would be different for the iterator types.

RangerMauve commented 6 years ago

Now that async-iterators are available pretty much everywhere, there shouldn't be much question about it.