Hacker News new | past | comments | ask | show | jobs | submit login

>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.




> Generators hide their underlying implementation (in C++) too, after all.

that has been contentious to say the least.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: