Pattern matching for switch (Third Preview)

Jan Lahoda jan.lahoda at oracle.com
Wed Mar 23 16:20:37 UTC 2022


Hi,

There is a new draft JEP for preview 3 of Pattern Matching for switch here:
https://bugs.openjdk.java.net/browse/JDK-8282272

The current ideas for improvements over the previous round are to remove 
guarded patterns and replace them with a "when" clause for the cases, 
and adjusting null handling more to the null handling in existing switches.

Feedback is welcome!

Thanks!
     Jan




More information about the amber-dev mailing list