News for hackers. Stuff that matters.
Re:Next-gen Java Programming Style by jrockway on Monday August 10, 2009 @01:49PM (#753532)
The problem I see is the amount of code that has to be copy-pasted, due to Java's lack of traits. If you want to write code like this, do yourself a favor and write it in Scala instead.
Re:Next-gen Java Programming Style by sciolizer on Monday August 10, 2009 @10:39PM (#754555)
Java's lack of traits does indeed suck, and I would definitely prefer Scala over Java, but the only copy-pasting you need to do is of delegation methods. It's duplicate boilerplate, but it's not duplication of logic.