Re:If Inheritance is so bad, why does everyone use it?
by SpaghettiCthulu on Sunday April 14, 2024 @10:08PM
(#40036425)
> > you have a function that takes a general type, and you can pass multiple specific types and it will do the right thing
>
> What does this have to do with inheritance? This is just a generic function.
It's a generic function with compile-time compatibility checks.
It's a generic function with compile-time compatibility checks.