|
|
|
|
|
by eiurafhlfie
2742 days ago
|
|
Tagged union types (called `enum` in Rust), recursion, and pattern matching are great for tree data structures, such as ASTs, and help catch many bugs. This is the reason why so many compilers, typecheckers, and interpreters are written in languages like OCaml, F#, Haskell, and Rust. |
|
If you change Rust to ML, the phrase would be way more natural.