5 ms·
Yes, I'm familiar with all of that, but isn't the Diamond of Death [1] is the exact reason why they did it? [1] https://en.wikipedia.org/wiki/Multiple_inherita
by andreygrehov 8y ago
Yes, I'm familiar with all of that, but isn't the Diamond of Death [1] is the exact reason why they did it?
[1] https://en.wikipedia.org/wiki/Multiple_inheritance#The_diamond_problem https://en.wikipedia.org/wiki/Multiple_inheritance#The_diamo...
- xapata 8y agoPeople read left to right. That solves all the trivial problems. The harder problems were always vocabulary problems not programming problems. The trouble is that English, and other human languages, have never been as clear or specific as we assume they are when we start writing code. For example, what is a bird? It's a thing that flies? Oh, ostrich, penguin... All these supposed OOP inheritance problems aren't unique to inheritance but to the translation of human language to programming. There's no need to exclude multiple inheritance, because nearly every aspect of programming is afflicted.