|
|
|
|
|
by kaba0
1653 days ago
|
|
> Duck typing or traits are better ways to represent polymorphic behaviors. We've known this for over a decade now. Any objective measure of that? Because there is a catch, we can’t do what doctors can. There are no double-blind tests for language design. All we have is empirical studies and based on that, OOP languages do objectively much better. So if anything, your exceptional claim require exceptional evidence. But otherwise I agree that these Animal hierarchies are just dumb and many definitely overuse inheritance. |
|