3 ms·
I agree with you, but trying to map your problems onto tree-based OOP inheritance is absurd. Trait-based programming solves polymorphism much more elegantly as
by echelon 6y ago
I agree with you, but trying to map your problems onto tree-based OOP inheritance is absurd.
Trait-based programming solves polymorphism much more elegantly as any type can adopt a behavior. These systems are going to replace the old paradigm.
- jariel 6y agoMost OO paradigms include pretty strong architectures for traits/interfaces. They are definitely useful, but 'inheritance' is extremely useful in many cases wherein there is a lot of material overlap in code. It gets out of hand fast and it's not perfect, but it's just so useful at a small scale, in so many ways.