3 ms·
> Unfortunately, the current landscape of popular languages have equated "object programming == inheritance" in people's minds. That's because inheritance isn'
by mrkeen 3y ago
> Unfortunately, the current landscape of popular languages have equated "object programming == inheritance" in people's minds.
That's because inheritance isn't really elsewhere, making it uniquely an OO concept (though I'm sure there are exceptions).
When people say OO is all about X, Y, and inheritance, well, X and Y are in most of the other languages too.
- BurningFrog 3y agoThe big "X" is that the code is implemented by objects calling each other. That's what OO is to me. Inheritance is nice for some things, but entirely optional.
- Gibbon1 3y agoPeanut gallery comment. Generics without type erasure and duck typing makes inheritance an antipattern.