The Groovy team have been making good progress lately. Since the November JSR meeting we've been working on a new JSR parser based on Antlr which is self documenting and can make some lovely pictures (may thanks to javanicus for adding this and Jennifer Zheng and Mark Malakanov for SynDiag).
We've now released 1.0-BETA-10
which includes an EA release of the new JSR parser as well as the
Classic Groovy parser. If you're interested in the changes, there is a migration guide.
Next on the roadmap,
in a couple of weeks we should be releasing the first beta of the JSR
version of Groovy which should provide a fairly solid base going
forward (with the JSR parser enabled by default). Its very pleasing to
see the JSR finally making good progress; there's clearly been a fair
amount of frustration at the apparent slow pace of things since the JSR
started.
Incidentally I'm particularly fond of Groovy arrays now in the JSR.
I've always found the array syntax in Java to be a little smelly but I
could never quite put my finger on it. Now in Groovy lists and arrays
are very similar (though the differences are kept to ensure clean
integration with Java code).
e.g.
List list = [1, 2, 3]
int[] x = [1, 2, 3]
/* notice array coercion */
long[] y = x
Customer[] customers = customerColl.findAll { it.country == 'UK' }
/* lets go dynamically typed */
def l = [1, 2, 3]
def a = [1, 2, 3] as int[]
1:55:16 PM
|
|