groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Merlin Beedell <>
Subject JDK 10: Use of var over def?
Date Fri, 23 Mar 2018 12:12:27 GMT
I see that the newly release JDK 10 now supports the "var" declaration for local variables
where the type can clearly be inferred from its initialiser:

I note that Groovy's "def" syntax (among others) was mentioned but rejected.

Would Groovy move to support this syntax in the same way (support 'var' only for Type Safe
inferred declarations) or as a general alias to the "def" keyword?

JDK 10 also has support for "docker" containers.  The ecosystem has certainly shifted!

Merlin Beedell

View raw message