3 ms·
> I am trying very hard to imagine any other higher level language where two distinct language features, each used correctly in their own way, can not be safely
by hellcow 4y ago
> I am trying very hard to imagine any other higher level language where two distinct language features, each used correctly in their own way, can not be safely combined.
Handling JavaScript exceptions as opposed to promise rejections in async code is a continual source of pain. They don’t work together. If you do try/catch on async code but forget to call await, catch will never be hit and your program might crash. There appears to be no linter available to detect this. Unless I’ve completely missed something, the interaction between these two features is a terrible design.