tc39 / proposal-joint-iteration

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

don't support an iterator for the fillers #11

Closed michaelficarra closed 10 months ago

michaelficarra commented 10 months ago

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

bakkot commented 10 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.