3 ms·
> inheritance is bad Inheritance is a common-sense solution to the problem of creating something similar to an existing object, but different in some key aspec
by gambler 6y ago
> inheritance is bad
Inheritance is a common-sense solution to the problem of creating something similar to an existing object, but different in some key aspects. It's programming by difference. Nothing bad about it until you start using it for type information.
>An object is a family of partially applied functions with some shared state
This is not true because of dynamic dispatch and because in non-sucky languages objects can interpret messages.