New candidate JEP: 488: Primitive Types in Patterns, instanceof, and switch (Second Preview)
Angelos Bimpoudis
angelos.bimpoudis at oracle.com
Fri Oct 25 14:51:00 UTC 2024
Dear experts:
The first draft of the spec covering JEP 488: Primitive Types in Patterns, instanceof, and switch (Second Preview) is available:
https://cr.openjdk.org/~abimpoudis/instanceof/jep488-20241014/specs/primitive-types-in-patterns-instanceof-switch-jls.html
(also https://cr.openjdk.org/~abimpoudis/instanceof/latest/)
Feel free to contact me directly or on this list with any comments.
Thanks
Angelos
________________________________
From: Mark Reinhold <mark.reinhold at oracle.com>
Sent: 30 September 2024 22:03
To: Angelos Bimpoudis <angelos.bimpoudis at oracle.com>
Cc: amber-dev at openjdk.org <amber-dev at openjdk.org>; jdk-dev at openjdk.org <jdk-dev at openjdk.org>
Subject: New candidate JEP: 488: Primitive Types in Patterns, instanceof, and switch (Second Preview)
https://openjdk.org/jeps/488
Summary: Enhance pattern matching by allowing primitive types in all
pattern contexts, and extend instanceof and switch to work with all
primitive types. This is a preview language feature.
- Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20241025/836d5e10/attachment-0001.htm>
More information about the amber-dev
mailing list