Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



I'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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: