> In principle, with functions-as-collections the yield and the whole
> generators stuff
> is not needed. If functions can be used on the right of 'in' or 'of'
> in 'for' then
> all 'yield' use cases that I saw so far can be implemented without the
> yield.
> So why do we need redundant entities?


Semi-coroutines for asynchronous computations is one:
https://github.com/killdream/promises-benchmark/blob/master/scenarios/serial/co.js#L49-L77
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to