~/talk

Groovy 3: All The Major New Features

Talkat Developer Summit 2020 · 2020-11-21..11-22· [java]
links:none on file
slides:none on file

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

  1. 0:00Introduction and setup
  2. 4:04Groovy 3 overview and background
  3. 5:08Parrot parser and Java compatibility
  4. 8:40New loop and array features
  5. 12:53Lambda and method reference support
  6. 16:28New operators and Elvis features
  7. 21:50Safe call and indexing improvements
  8. 23:58Local variable type inference
  9. 26:06Interface default methods and traits
  10. 30:16New JDK methods and operator overloading
  11. 35:03Null check annotation
  12. 36:27Java module system compatibility
  13. 37:30Accessing space station data
  14. 45:16Fetching cat pictures from Flickr
  15. 52:45Daily jumble solver demo
  16. 56:16Conclusion and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.