New candidate JEP: 427: Pattern Matching for switch (Third Preview)
mark.reinhold at oracle.com
mark.reinhold at oracle.com
Mon Apr 25 19:48:43 UTC 2022
https://openjdk.java.net/jeps/427
Summary: Enhance the Java programming language with pattern matching
for switch expressions and statements. Extending pattern matching to
switch allows an expression to be tested against a number of patterns,
each with a specific action, so that complex data-oriented queries can
be expressed concisely and safely. This is a preview language feature.
- Mark
More information about the jdk-dev
mailing list