New JEP: Switch Expressions for the Java Language

Brian Goetz brian.goetz at oracle.com
Thu Dec 7 22:30:29 UTC 2017


In the context of Pattern Matching (JEP 305) we've explored a number of 
improvements to `switch`, including switch expressions, expanding the 
range of types that can be arguments to switch, better null handling, 
and others.  Many of these can be developed independently of pattern 
matching; we've separated out a package of these features into their own 
JEP, as they stand well on their own:

     https://bugs.openjdk.java.net/browse/JDK-8192963




More information about the amber-dev mailing list