3 ms·
Extensibility of the type without breaking existing code. When you add or remove a case from an algebraic data type, you pretty much need to modify all function
by jpr 16y ago
Extensibility of the type without breaking existing code. When you add or remove a case from an algebraic data type, you pretty much need to modify all functions that operate on it since they contain patterns that mention the data-constructors that you either removed, or they don't cover all the cases anymore.
(if you meant pattern matching as in text/regular expressions, disregard what I just wrote)