New candidate JEP: 420: Pattern Matching for switch (Second Preview)

mark.reinhold at oracle.com mark.reinhold at oracle.com
Tue Oct 19 19:10:31 UTC 2021


https://openjdk.java.net/jeps/420

  Summary: Enhance the Java programming language with pattern matching
  for switch expressions and statements, along with extensions to the
  language of patterns.  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.

- Mark


More information about the jdk-dev mailing list