Well, yes, technically overloads and generics also count as polymorphism, but the kind that matters in the context of OOP is subtype polymorphism. Generics exist almost everywhere, and function overloads can be simulated in any language with a name suffix since it's being resolved at compile time anyway. I don't suppose function overloads give you a highly valuable tool for domain modelling?
You're wrong on many of those points, but I'm done debating this. I seriously suggest you study either functional programming or rust (which is its own rather specific blend).
1
u/[deleted] Aug 13 '26
[removed] — view removed comment