. .


Full Bore Polymorphism

August 31, 2011 22:58:59.323

Torsten Bergman explains just how deep the Smalltalk polymorphism rabbit hole goes:

While a function/method name in a class has to be unique so it could be called it usually is a Symbol. You know all these #foo, #bar, #negated, ... In Java you may call it foo() or bar() or negated(). But in Smalltalk this selector could be ANY object. Yes, yes - this is not a type.

Technorati Tags:

posted by James Robertson

 Share Tweet This