3 ms·
"Haskell is the best imperative language," (C) various software engineers. Also, algebraic data types can be seen as hierarchy consisting of abstract base clas
by thesz 2y ago
"Haskell is the best imperative language," (C) various software engineers.
Also, algebraic data types can be seen as hierarchy consisting of abstract base class and several final children classes. So it is an inheritance model, just restricted one.