2 ms·
Neat to see; I think Rust shines here, since the use of pattern matching is tighly coupled with error handling of value that may be null; since pattern matching
by ndesaulniers 11y ago
Neat to see; I think Rust shines here, since the use of pattern matching is tighly coupled with error handling of value that may be null; since pattern matching in Rust is exhaustive. [0] "But, the C++ compiler let me get away with not handling the case where the pointer was invalid (even if doing nothing in the case of “handling” it). ... Not only did the [Rust] compiler prevent me from generating an executable, it told me that a pattern was not exhaustive, explicitly which one, and what case that was not covered."
[0] http://nickdesaulniers.github.io/blog/2013/05/07/rust-pattern-matching-and-the-option-type/ http://nickdesaulniers.github.io/blog/2013/05/07/rust-patter...