3 ms·
But not having a `try...catch` for such events is a kind of logic error. The choice of programming language only gets you so far - it's up to the developers to
by GordonS 6y ago
But not having a `try...catch` for such events is a kind of logic error.
The choice of programming language only gets you so far - it's up to the developers to actually handle errors in a meaningful way.
- jen20 6y agoI'd argue that languages which force handling via the type system (e.g. `Result<T, Error>` in Rust) makes it less likely that bugs like this will go unhandled, since the position if the programmer does not explicitly opt out of error handling (with `unwrap` etc) is a compilation error rather than missing error handling.