Error handling in #JavaScript and #TypeScript is not good. There is no way for the caller of the function to know if it can throw an error and no way for the compiler/linter to enforce that an error is handled.

#Rust does a much better job of this!

Via Mastodon