tc39 / proposal-joint-iteration

a TC39 proposal to synchronise the advancement of multiple iterators
https://tc39.es/proposal-joint-iteration
51 stars 2 forks source link

don't support an iterator for the fillers #11

Closed michaelficarra closed 7 months ago

michaelficarra commented 7 months ago

Fixes #6. Not sure this is an improvement. It is Iterator.zip after all.

bakkot commented 7 months ago

This is definitely an improvement. Iterator.zip means it zips iterators, not that every input is an iterator. By analogy, Promise.all doesn't await its argument.