by josephg · 9mo ago · 0 comments
For all the complaints about function colouring, I’m glad JavaScript has them. A sync function becoming an async function is a breaking API change. This is much better than the situation in Python, where yield points are invisible.
Sync functions perform better than async functions, and they give more guarantees to the caller. They're strictly better, when you can use them.
If you find yourself making everything async, your design is bad and you should refactoring your code.