4 ms·
http://doc.rust-lang.org/doc/tutorial.html#pattern-matching http://doc.rust-lang.org/doc/tutorial.html#pattern-matching This is the whole reason why that langu
by thealistra 15y ago
http://doc.rust-lang.org/doc/tutorial.html#pattern-matching http://doc.rust-lang.org/doc/tutorial.html#pattern-matching
This is the whole reason why that language has such a big potential.
It has high level algebraic datatypes with pattern matching, so you can nicely model your control flow (like haskell or ocaml) but still remaining low-level.