3 ms·
Haskell’s typeclasses[1] support this use case—though they are oftentimes a bit clukier to use than OOP approaches. [1]: https://en.m.wikipedia.org/wiki/Type_c
by voidhorse 7y ago
Haskell’s typeclasses[1] support this use case—though they are oftentimes a bit clukier to use than OOP approaches.
[1]: https://en.m.wikipedia.org/wiki/Type_class https://en.m.wikipedia.org/wiki/Type_class