Re:Haskell, Monads and Purity
by vertex-four on Saturday October 04, 2014 @06:39AM
(#8409210)
> I think Rust makes you complete all pattern matches too.
It does, although for Option and Result, there's .unwrap() which simply exits the program (through fail!()) on None/error. The fact that you can do this is practical, although could potentially train bad habits.
It does, although for Option and Result, there's .unwrap() which simply exits the program (through fail!()) on None/error. The fact that you can do this is practical, although could potentially train bad habits.