Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No. Making it look imperative and being abstracted away are two different things.

Co-routines are not imperative, and you cannot treat them as though they are, you still have to understand they're async to use them at all. That is not "abstracted away", that is syntactic sugar.

Furthermore, this syntactic sugar only works locally when examining your coroutines, or promises, or asyc/await code. You still have to trigger that async code from somewhere, and the place it's triggered is always mixing sync and async code, so you can't sugar coat all of it.

There is no getting around knowing and thinking about the async factors when writing async code. You cannot hide it with coroutines or anything else.



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

Search: