Discussion of the expression model (easy to add data types vs. easy to add functions)
here as Haskell algebraic data types vs OOP classes

https://stackoverflow.com/questions/870919/why-are-haskell-algebraic-data-types-closed

#Haskel #OOP #ADT

Why are Haskell algebraic data types "closed"?

Correct me if I'm wrong, but it seems like algebraic data types in Haskell are useful in many of the cases where you would use classes and inheritance in OO languages. But there is a big difference...

Stack Overflow