Since dynamic languages are getting a lot of play, it is nice to see the granddaddy getting its due. I've never done Lisp for money, but some of my favorite language features (in Ruby, Smalltalk, Groovy, etc.) trace their origins to Lisp.
The article, "Lisp and Java" on ONJava.com shows how to use anonymous inner classes in Java to get one of the best features of Lisp, the ability to treat functions as first class objects.
While the syntax is a little bloated when compared to the so-called Agile languages, it is nice to see how a lambda function or closure maps to traditional Java syntax.
No comments:
Post a Comment