News for hackers. Stuff that matters.
Re:We have C++14 by danieldk on Tuesday August 19, 2014 @01:48AM (#8196148)
Many respectable people has been making a case to avoid inheritance[1][2].

Unfortunately, class inheritance is the only way to create the equivalent of an interface or (Scala-type) trait in C++. So, even if you avoid class inheritance in general (which is a good thing IMO), you still end up doing inheritance if you want run-time polymorphism in the form of abstract classes or abstract base classes.

There are no comments on this comment yet.