Hacker News new | ask | show | jobs
by recursive 3454 days ago
OOP isn't the solution to every problem. Your proposed replacement to inheritance would would work nicely in some cases. As far as I can tell, it doesn't address the use case of generic classes at all, at least in a type-safe way.
1 comments

Generics and OOP are orthogonal, one does not depend on the other. So let's say you declare your vtbl struct with a generic parameter, what's the difference?
Hm. I think you're right. It's probably my classical OOP conditioning causing me to conflate them.