Hacker News new | ask | show | jobs
by vkazanov 473 days ago
This is not oop but polymorphism that is useful. And various forms of polymorphism are used in all kinds of programming paradigms.

Also, this is a nice way to get the damn banana without getting lost in the jungle.

2 comments

polymorphism used that way is 100% the most traditional OOP possible ever
Yes, a similar approach to polymorhpism is supertypical for popular OOP-focused languages, along with other concepts.
isnt polymorphism inherently a subset of oop?
No, all popular functional languages have one flavour of polymorphism or the other.

Or, in math speak, Oop means polymorphism but polymorphism doesn't mean oop.