Java and closures – YAPOJC

YetAnotherPostOnJavaClosures

So, I fell over some articles with both the words closure and java in them this week.

It was this article about JavaFX closures.

Since I’ve done some of my non-mandatory classes in my stud.scient. days (like the last 4years) it kinda woke my interest.

It seems like lots of things has happend in the Java world since I last had any real interest in it (somewhere around 1½ year ago).

Maybe “fell over some articles” is a bit inaccurate. I’ve actually been trying to catch up. My main focus has been on the things I needed in my day-to-day work. That included JUnit and Unit-testing, Spring and the Application Server Enterprisy way of doing things.

Luckily I already spent some time reading up on the concept of SOA.

There is a ton of material online about all these things. Currently(as in the past year) there’s alot of talk about feature request for Java 7. Including closures. I tried to do a “quick” catchup on the subject and decided to share my findings with the world:

As far as I gather there currently exist two proposals:

and as in any other good war on the internet, it seems like we are at a point where religion is the turning point. The CICE people believes that the BGGA is “overly complex”, and will alienate users by “pushing the complexity of the language beyond the point where Joe Java can’t use the language anymore”
Another interesting twist is the fact the Neal Gafter – who I see as the current “main-man” behind BGGA, is working at Google as well as Josh Bloch and Josh Blach is the JCP representative for Google as pointed out by Ricky Clarkson (and down played by Neal Gafter).

So no real catfight there. But among the readers there’s a very Web2.0-ish involvement in the debate. Lots of evangelists on both sides. (I’m a BGGA’er myself! To me it seems like CICE is like sitting between two chairs). Among these debates and blogentries there’s lots of interesting reading (and hearing; podcasts).

Apart from the other links in this post I recommend:

UPDATE: If you need the real thorough easy understandable walkthrough this is a very nice talk by Neal Gafter

If you need even more reading try some of these googlesearches:

This entry was posted in Uncategorized. Bookmark the permalink.