RFR: 8300543 Compiler Implementation for Pattern Matching for switch
Jan Lahoda
jlahoda at openjdk.org
Fri Apr 14 12:56:51 UTC 2023
On Fri, 17 Mar 2023 12:15:58 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> This is the first draft of a patch for JEP 440 and JEP 441. Changes included:
>
> - the pattern matching for switch and record patterns features are made final, together with updates to tests.
> - parenthesized patterns are removed.
> - qualified enum constants are supported for case labels.
>
> This change herein also includes removal record patterns in for each loop, which may be split into a separate PR in the future.
There's still an open question on enum initialization, but I'd welcome feedback on the patch. Thanks!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13074#issuecomment-1508458643
More information about the core-libs-dev
mailing list