Groovy 3: All The Major New Features
summary
Groovy 3 replaces the parser with the Parrot Parser so Java lambda and method/reference syntax compile directly, and the distribution is modularized so groovy-all is optional. New syntax includes Parrot Parser adds Java lambda and method/reference syntax, Elvis assignment operator and triple-equals identity and added operators like not in / not instanceof, plus dowhile, Java-style array init, var local type inference, safe indexing, and trait enhancements. Examples show parsing open-notify JSON, mapping into POJOs, inserting into H2, and fetching Flickr cat images.
AI-written summary · about
chapters (16)
- 0:00Introduction and setup
- 4:04Groovy 3 overview and background
- 5:08Parrot parser and Java compatibility
- 8:40New loop and array features
- 12:53Lambda and method reference support
- 16:28New operators and Elvis features
- 21:50Safe call and indexing improvements
- 23:58Local variable type inference
- 26:06Interface default methods and traits
- 30:16New JDK methods and operator overloading
- 35:03Null check annotation
- 36:27Java module system compatibility
- 37:30Accessing space station data
- 45:16Fetching cat pictures from Flickr
- 52:45Daily jumble solver demo
- 56:16Conclusion and Q&A
related talks
40mGroovy update: What's new in Groovy 3 and coming in 4
01h 27mGroovy, in the light of Java 8
31mApache Groovy's Metaprogramming Options and You
58mGroovy, Java, and Kotlin
43mFunctional Programming in Java, Groovy, and Kotlin
01h 02mFunctional Programming in Java, Groovy, and Kotlin
01h 31mGroovy and Grails Puzzlers - As usual - Traps, Pitfalls, and End Cases
35mWhat makes Groovy a great scripting language
