3 ms·
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
by Retra 10y ago
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.
- yazaddaruvala 10y agoFair 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>>`