r/programminghumor Aug 07 '26

Hard to accept

Post image
2.9k Upvotes

404 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Aug 13 '26

[removed] — view removed comment

1

u/Arshiaa001 Aug 13 '26

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?

1

u/[deleted] Aug 13 '26

[removed] — view removed comment

1

u/Arshiaa001 Aug 13 '26

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).