2 ms·
It's not bad. People like to feel smug by saying OO is bad and hence inheritance, meanwhile using some construct in their FP that is really the same thing.
by dboreham 3y ago
It's not bad. People like to feel smug by saying OO is bad and hence inheritance, meanwhile using some construct in their FP that is really the same thing.
- chowells 3y agoCan you explain how any construct in FP conflates subtyping and code sharing the way OO inheritance does?
- tossandthrow 3y agoyou seem to be misunderstanding different terms. You can do OO without inhertitence. inheritance is the worst as you grip with you types. just use strategy patterns instead.
- deleted 3y ago[deleted]