Groovy 1.8 released

Groovy 1.8 has been released. According to release notes following changes has been done:

  • Performance improvements
  • Closure enhancements (closures as annotation parameters, closure composition, …)
  • native JSON support (JSONSlurper, JSONBuilder)
  • a few new AST transformations (@Log, @ToString, @EquaslAndHashCode, …)
  • GPars is now bundled within the Groovy distribution
  • Diamond operator (from project Coin – JDK7)
List<list<long>> someList = new ArrayList<>()

Further JDK7 innovations (project Coin) are scheduled for Groovy 1.9 as far as Groovy doesn’t support them yet.

Groovy is also well known for creating domain specific languages (DSL). With release 1.8 command chains has been added which makes Groovy DSLs much more readable:

// add(5.getEuro()).to(10.getUSD())
add 5.EUR to 10.USD
Short URL for this post:
This entry was posted in Groovy and Grails and tagged . Bookmark the permalink.

1 Response to Groovy 1.8 released

  1. Pingback: Life.groovy now available | cartesian product

Leave a Reply

Your email address will not be published. Required fields are marked *