>Looking at the example I gave, how is `async function` any more clear than saying `co(function`? It covers the exact same use cases with equivalent clarity.
It skips the generator part and extra wrapper. That's a simpler syntax (and thus more clarity) for what people do 99% of the time.
Clarity is not necessarily "I can see the underlying mechanism".
Generators hide their underlying implementation (in C++) too, after all.
It skips the generator part and extra wrapper. That's a simpler syntax (and thus more clarity) for what people do 99% of the time.
Clarity is not necessarily "I can see the underlying mechanism".
Generators hide their underlying implementation (in C++) too, after all.