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

> blocking code is objectively easier to reason about than “jumping around” code.

This is precisely why await was introduced in the first place. Promise and callback code was impossible to reason about.




A Promise is not ordinary blocking code.

String res = someRestCall();

is.


I was agreeing with you. They introduced await because they know that

    var s = await someCall();
is way easier to reason about than:

    someCall().then(…)


Oh, I see! Sorry for the misunderstanding!




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

Search: