4 ms·
If you're just doing inheritance you're usually much better off with a typeclass-based system. Agreed that structural typing is nice, but it's not restricted i
by centimeter 6y ago
If you're just doing inheritance you're usually much better off with a typeclass-based system.
Agreed that structural typing is nice, but it's not restricted in any way to OOP.
- hn_throwaway_99 6y ago> Agreed that structural typing is nice, but it's not restricted in any way to OOP. Totally agree, but what I'm arguing is that a lot of the pain points people associate with OOP are actually more about the pain points of a nominally-typed system, and when you use OOP with a structurally-type language a lot of those pain points go away.