Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jicea
10 months ago
|
parent
|
context
|
favorite
| on:
Effective Rust (2024)
It's even nicer in Rust: there can be an "implicit" conversion between the error raised by foo and bar:
fn foo() -> Result<(),FooError> bar()? fn bar() -> Result<(),BarError>
If FooError can be created from BarError, the compiler will insert the conversion call and errors bubbles up nicely.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: