Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Retra
on Nov 11, 2016
|
parent
|
context
|
favorite
| on:
Announcing Rust 1.13
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
on Nov 11, 2016
[–]
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: