Wednesday, June 30, 2004

Lisp and Java

A lot of developers I know got started with C/C++ and have moved on to Java. The programmer's toolbox gets bigger and richer with Java but there's always more to learn. In this article, Dan Milstein shows how one of the more powerful features of Lisp, the ability to treat functions as data, can be approximated in Java. This feature, also known as functions as first-class objects, can be particularly useful when dealing with collections. In the article, Dan's example shows this technique in use doing queries via JDBC.