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

Yeah that's why in nodejs I made functions as async unless I know really well that it won't need await. Though that seems bad, it's not the worst due to how good async/await actually is.

Unpopular opinion, it makes me want to have a setting where all function is async by default, and all function calls are await by default. With `nowait` and `sync` as the opposite




In V8 it used to be the case that every await was translated into 3 extra function calls and this caused big perf issues.

These days I think it's only one extra function call but still...




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

Search: