Re:Ask YC: What exactly is so hard about OO?
by stcredzero on Tuesday June 03, 2008 @11:18AM
(#207961)
WOuld this be another way of thinking of it:
Lisp Macros are boilerplate without the duplication. (And so without the drawbacks)
I will assert, though I can't demonstrate it, that had this been done in Lisp, the boilerplate problem could have been substantially alleviated by using Lisp macros. One piece of evidence: J2EE has improved this problem substantially by using Java's relatively-new "annotation" feature, which, broadly speaking, has some of the same mojo as Lisp macros, when used properly.
On the other hand, you can do a lot better even in Java. Look at Spring and the other new post-J2EE frameworks. The experience with J2EE has led to learning and improvement in these new "dependency-injection" frameworks, which is definitely a good thing for the Java world.