Re:Announcing Rust 1.13
by Retra on Thursday November 10, 2016 @07:04PM
(#12925995)
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.
[ Parent
| on HN ]
Re:Announcing Rust 1.13
by yazaddaruvala on Thursday November 10, 2016 @08:08PM
(#12926441)
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>>`