News for hackers. Stuff that matters.
Re:Rust for Python Programmers by dbaupp on Wednesday May 27, 2015 @10:33PM (#9615773)
The `Option` type (what Rust calls Maybe) is rarely used for error handling. As the article describes, Result is normally used, which allows attaching arbitrary data to the error case: http://doc.rust-lang.org/std/result/

For example, the io library generally returns http://doc.rust-lang.org/std/io/struct.Error.html as the information when errors occur, which includes all sorts of possibilities for what went wrong: http://doc.rust-lang.org/std/io/enum.ErrorKind.html

Re:Rust for Python Programmers by e12e on Thursday May 28, 2015 @09:40PM (#9622248)
In addition to what dbaupp mentions, you might want to look at:

http://blog.burntsushi.net/rust-error-handling/

(which was posted to hn a while back)