Hacker News new | ask | show | jobs
by coldtea 2617 days ago
Well, classes are types in a language where everything is an object. It's the same in Smalltalk, no?
1 comments

That is exactly the category error I am calling out.

In a duck-typed language, type is defined by the willingness of a message receiver to receive that message. Class, inheritance, composition are all means to achieve this, but the type of an object is determined by its signature, not its ancestor chain.