4 ms·
Is having the 'await' keyword really necessary? What if every time I call an async function the interpreter would automatically "await" for its result?
by galaxyLogic 2y ago
Is having the 'await' keyword really necessary?
What if every time I call an async function the interpreter would automatically "await" for its result?
- vacuity 2y agoPerhaps (?) it wouldn't be an issue for correctness in most languages, but it would certainly add a performance and debuggability cost. It could be useful in some niche domains, probably.