News for hackers. Stuff that matters.
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.
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.
Re:Java 10 and beyond – a look at the potential language change by ckarmann on Tuesday May 15, 2018 @12:34AM (#17071673)
While the article mentions Pattern Matching, it seems to be something for the distant future. I was referring changes of Java 11, which seems to me the focus of the article.
Re:Java 10 and beyond – a look at the potential language change by lovelle on Tuesday May 15, 2018 @11:32PM (#17079831)
If I am not mistaken, Pattern matching will be included on Java 11, please correct me if I am wrong.