3 ms·
I use the new language features all of the time. Variable type conferencing with the var keyword is incredible. The new Java 11 module system allows me to write
by shepherdjerred 5y ago
I use the new language features all of the time. Variable type conferencing with the var keyword is incredible. The new Java 11 module system allows me to write code more safely without accidentally crossing levels of abstraction. Java 17's text blocks are a really nice enhancement. Pattern matching with switch statements makes code a little more concise, and reduces the chance of forgetting to update switch statements when a new value to an enum is added. Record classes add immutable-by-default data structures which make packages like Lombok less necessary. Pattern matching with instanceof reduces verbosity and makes code feel a little more modern -- it feels more similar to writing Swift or Rust.
I've used all of these features. They're all great.