Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> However, unlike more dynamic languages, the return types are usually Result<SuccessValue, SomeErrorType>

Yes, this is a more complete and precise explanation. :-) I rather like Rust's error handling in practice—it adds only a small amount of syntactic noise, and even the annoying bits (such as converting and wrapping error types) can mostly be isolated in a single file per project.



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

Search: