News for hackers. Stuff that matters.
Re:Stackable Traits Pattern in Scala by jbooth on Tuesday February 16, 2016 @10:31PM (#11115053)
Yeah -- I'm arguing for composition because it's harder to screw up, at the cost of being less pretty. The manner and order in which composed objects are delegated to is crystal clear if you're wiring them yourself (or with your IDE). I've seen some messy, confusing code involving traits and just slapping 'with Thingy' 10 times in a row. The phrase 'emergent behavior' is how I would best describe it.

There are no comments on this comment yet.