2011年4月27日、
GroovyはJavaとの親和性が非常に高い軽量プログラミング言語で、
- DSL
(Domain Specific Language:ドメイン特化言語) を促進するコマンドチェイン - パフォーマンスの向上
- 並行処理ライブラリ
「GPars」 の同梱 - JSON対応
- 新たなAST変換
(Abstract Syntax Tree Transfer:抽象構文木変換。@Log、 @Fieldなど)
内部DSLが記述しやすくなった改善により、
Groovyベースで作られた有名プロダクトの一つに、
// turn(left).then(right) と等価
turn left then right
// take(2.pills).of(chloroquinine).after(6.hours) と等価
take 2.pills of chloroquinine after 6.hours
// paint(wall).with(red, green).and(yellow) と等価
paint wall with red, green and yellow
// check(that: margarita).tastes(good) と等価
check that: margarita tastes good