2 ms·
> 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 f
by vertex-four 12y ago
> 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.