2 ms·
> An example would be async/await and generators, both which are just a special cases of coroutines. If JS would have coroutines, then these two would just be c
by minitech 9y ago
> An example would be async/await and generators, both which are just a special cases of coroutines. If JS would have coroutines, then these two would just be coroutine libraries.
async/await could be implemented with just generators, and were so implemented in ES6; async/await was added to the language because it was convenient. A language without full coroutines is fine.