New candidate JEP: 433: Pattern Matching for switch (Fourth Preview)
Mark Reinhold
mark.reinhold at oracle.com
Tue Oct 18 17:04:10 UTC 2022
// Corrected
https://openjdk.org/jeps/433
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