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

Rust leaves it unrestricted. As does Haskell (although I am lying a little most just choose to use Either for Result)

Rust actually gets some use out of it, for instance returning an alternative value instead of handling it as a pure failure.



Oh true, I am really interested in those choices too.


The case that comes most to mind for that in Rust is https://doc.rust-lang.org/std/primitive.slice.html#method.bi...


Thank you!




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

Search: