News for hackers. Stuff that matters.
Re:The use of `class` for things that should be simple free ... by gambler on Thursday May 28, 2020 @01:47PM (#23340190)
> 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.

There are no comments on this comment yet.