New candidate JEP: 405: Record Patterns & Array Patterns (Preview)

mark.reinhold at mark.reinhold at
Fri Mar 26 16:55:14 UTC 2021

  Summary: Enhance the Java programming language with record patterns,
  to deconstruct record values, and array patterns, to deconstruct
  array values. Record patterns, array patterns, and type patterns
  ([JEP 394][jep394]) can be nested so as to significantly enhance the
  expressiveness and utility of pattern matching.

- Mark

More information about the jdk-dev mailing list