Re:Java 10 and beyond – a look at the potential language change
by ckarmann on Sunday May 13, 2018 @08:11PM
(#17061786)
These are just syntactic sugar, not going to change much to the way Java programs are coded. I found these changes rather tame compared to historical ones. Java 8 (lambdas), Java 5 (generics, annotations) and Java 1.1 (inner/anonymous classes, reflection) were far more disruptive.
[ Parent
| on HN ]
Re:Java 10 and beyond – a look at the potential language change
by lovelle on Monday May 14, 2018 @02:04PM
(#17067848)
I do not agree with that, this is not just syntactic sugar, for example in case of large 'else if' statements the complexity to choose proper branch is O(n), instead with pattern matching the chosen branch will be at constant time.