Hacker News new | ask | show | jobs
by high_na_euv 473 days ago
Who would have thought that OOP could be useful!
1 comments

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.

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.