Hacker News new | ask | show | jobs
by pjmlp 2118 days ago
And then there is prototype polymorphism (SELF, JavaScript), pattern based polymorphism (BETA), component based polymorphism (COM, SOM, UWP), protocol based polymorphism (Objective-C, Swift, Smalltalk), ....

That is the thing, there isn't one OOP.

1 comments

how does smalltalk use protocols? is it more ad-hoc like "responds to selector" or something else?
That is one way, informal use of categories, if we limit ourselves to Smalltalk-80 and Squeak.

Pharo also offers traits, not sure if Cinacom and Dolphin also do it.

forgot about pharo, yes it has traits (protocols)