Over a million developers have joined DZone.

Java closures update


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).


Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}