|
|
|
|
|
by hota_mazi
1872 days ago
|
|
It's the main reason why inheritance became so popular and so useful. Specialization remains a very common design pattern that is incredibly useful and trivially and intuitively solved with inheritance. No other programming concept (HKT, ad hoc polymorphism, functional programming, etc...) comes close to its elegance. |
|
Beautifully put. That matches up with my own experience learning classical OOP, even if I'm now comfortable with other models.