3 ms·
I think it's more that they've taken one good part, but in their defense it's probably one of the best parts :). Pattern matching and specifically algebraic da
by lomnakkus 13y ago
I think it's more that they've taken one good part, but in their defense it's probably one of the best parts :).
Pattern matching and specifically algebraic data types are probably the most important to me since I find algebraic data types to be such an incredibly powerful data modeling tool. I find that almost any problem I encounter in my daily work can easily be modeled using algebraic data structures and from there the code is always some set of "trivial" set of pure pattern matching functions. Unfortunately the full power of pattern matching (compiler-checked exhaustiveness/consistency checks, specifically) can only really be emulated with the visitor pattern in Java -- which is just too much boilerplate syntax to make it useful outside of special cases.