4 ms·
Rust has ADTs and it has exhaustive pattern matching AND it's not functional. It's arguably mainstream now. Haskell doesn't have exhaustive pattern matching it
by kilgnad 4y ago
Rust has ADTs and it has exhaustive pattern matching AND it's not functional. It's arguably mainstream now.
Haskell doesn't have exhaustive pattern matching it just gives you a warning.
- ParetoOptimal 4y ago> Haskell doesn't have exhaustive pattern matching it just gives you a warning. It can have exhaustive pattern matching if you use `-Werror`. That's frequently the default in an industrial Haskell setting. I wish that non-exhaustive patterns would be an error by default though.