bgga

How do I use BGGA closures prototype on standard Mac JDK6?

I am trying to use the BGGA closures prototype with an existing JDK 6 (standard on Mac OS X Leopard). The sample code I'm compiling is from a BGGA tutorial: public static void main(String[] args) { // function with no arguments; return value is always 42 int answer = { => 42 }.invoke(); System.out.println(answer); } I have trie...

BGGA closures as a bolt-on solution to java?

Yesterday @headius / Charles Nutter came up with a very interesting idea on twitter: @danny_l Gafter made the same mistake; I don't mean a forked Java any more than Groovy is a fork. I want a "mostly Java" with closures. or the reply by @danny_l / Danny Lagrouw: @headius or could the BGGA prototype be "bolted on" any future version o...

Closures in Java - syntax differences between the three major proposals?

Three major proposals for adding closures to the Java language has been presented: BGGA (Bracha Gafter Gosling Ahé) also known as "full closures", by Gilad Bracha, Neal Gafter, James Gosling and Peter von der Ahé CICE (Concise Instance Creation Expressions) also known as "simplified inner classes", by Bob Lee, Doug Lea and Josh Bloch F...