3 ms·
> If I gather from the other answers here correctly, the Haskell money feature (for abstraction) is type-classes. On a more elementary level, lots of languages
by eru 15y ago
> If I gather from the other answers here correctly, the Haskell money feature (for abstraction) is type-classes.
On a more elementary level, lots of languages could benefit from algebraic data types. Most languages only support the `product' part of them well, but the `sum' is equally important.
Where product means in terms of C putting things together in a struct, and a sum is more like union. Only that C's unions are dangerous.