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.
[ Parent
| on HN ]