JEP 441: Pattern Matching for switch (suggestion re: handling sealed type selector expressions)

David Alayachew davidalayachew at gmail.com
Sun Apr 9 18:54:22 UTC 2023


Well, correction. I think *I* am the one who misinterpreted the post, but I
think an interesting situation occurs if you change the original post to be
"Don't allow any catch-all" to be "Don't allow case S s as a catch-all when
there already exists a good default and the selector expression is already
of type S"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20230409/f8277025/attachment.htm>


More information about the amber-dev mailing list