Alex Miller lives in St. Louis. He writes code for a living and currently work for Terracotta Tech on the Terracotta open-source Java clustering product. Prior to Terracotta he worked at BEA Systems and was Chief Architect at MetaMatrix. His main language for the last decade has been Java, although Alex have been paid to program in several languages over the years (C++, Python, Pascal, etc). Alex has posted 43 posts at DZone. You can read more from them at their website. View Full User Profile

Java closures update

01.17.2008
| 2121 views |
  • submit to reddit

There have been a couple interesting developments on the closures front this week that I thought I would mention.

First, Rémi Forax has put forth his own closures proposal which has something like the power of BGGA, a new syntax, and a function orientation akin to FCM. As always with these sorts of things, the comments are as interesting as the post.

Also, Mark Mahieu has put together a prototype of the CICE/ARM proposal favored by Josh Bloch. CICE is mostly some nice syntactic sugar to make the creation of anonymous inner classes with one method a lot cleaner. ARM is a complementary proposal to support the automatic use (and cleanup) of resources within a block, which is a key use case targeted by the closures proposals.

This is really exciting as we can now try out prototypes of Neal's BGGA proposal and CICE and see how they work. Stephen Colebourne has hinted at a possible prototype for FCM/JCA as well, which would be great.

If you're interesting in seeing links to Java 7 stuff as they come in, please check out the Java 7 Link Blog (RSS).

Published at DZone with permission of its author, Alex Miller.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)