News for hackers. Stuff that matters.
Re:Message Passing, Duck Typing, Object Composition, and not... by wccrawford on Saturday January 01, 2011 @06:03PM (#2058742)
I've been hearing some disdain for inheritance lately for some reason. This article is filled with it. For instance:

"The beauty here is that you can reuse code without dealing with inheritance, or any sort of class-based hierarchy."

... That's the beauty? The only beauty if that you managed to avoid a feature of the language? Ouch.

I get that really dumb things can be done with inheritance, but that's true for almost any language feature. It's certainly no reason to avoid it altogether.

There are no comments on this comment yet.