4 ms·
> if there were any use cases that could be solved using inheritance that could not be solved more elegantly without it? There are behavior mixins, that you ca
by marcosdumay 9y ago
> if there were any use cases that could be solved using inheritance that could not be solved more elegantly without it?
There are behavior mixins, that you can look at Django views as an example. There are interface implementations when you want to have a few almost complete standard ones.
Both are cumbersome to implement on Haskell. If you make sure to not use any widely used class, you can hack them out of some sets of hierarchical type classes with possible some overlapping. But leaving half-done stuff at your API to be filled by client code is never pretty there.