Hacker News new | past | comments | ask | show | jobs | submit login

Checked exceptions probably act more like ad-hoc enums since you've got to handle each kind of exception that can be thrown, but I'm sure that could be encoded in nested results too.



Fair enough, CheckedExceptions are almost always "fat pointers". Meaning they are all the same size, and can be passed around equivalently.

The Rust equivalent would be something like:

`Result<_, Box<Error>>`




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

Search: