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


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) can be nested so as to significantly enhance the expressiveness and utility of pattern matching…

More at https://mail.openjdk.java.net/pipermail/jdk-dev/2021-March/005254.html