News for hackers. Stuff that matters.
Re:Inheritance was invented as a performance hack by CRConrad on Monday May 03, 2021 @04:23AM (#27022755)
> Interfaces with default implementations are better than classes for a number of reasons, including the diamond problem [...]

"The diamond problem" only occurs with multiple inheritance. At a (wild-ass) guess, only a minority of "traditional" (=inheritance-based) OOP languages have that; certainly not all of them. So as far as "the diamond problem" is concerned, interfaces with default implementations are no better than single-inheritance classes.

There are no comments on this comment yet.