Draft JEP on Primitive types in patterns, instanceof, and switch

Angelos Bimpoudis angelos.bimpoudis at oracle.com
Thu Jan 26 09:48:47 UTC 2023


Hello all,

I would like to share this draft JEP with you about primitive types in patterns, instanceof, and switch:

https://openjdk.org/jeps/8288476

"Enhance pattern matching by allowing primitive types to appear anywhere in patterns. Extend instanceof to support primitive types, and extend switch to allow primitive constants as case labels."

Comments very much welcomed!

Many thanks,
Angelos

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20230126/59fea716/attachment.htm>


More information about the amber-dev mailing list