Finalizing in JDK 16 - Pattern matching for instanceof

Brian Goetz brian.goetz at oracle.com
Sun Sep 13 13:20:28 UTC 2020


> I think that Pattern matching for `instanceof` should stay in the preview feature state because as we discuss about how pattern matching works,
> there is a strong feeling that both features should be aligned, so i see Pattern matching for `instanceof` being promoted as a non-preview feature as an unnecessary risk until the pattern matching feature is not ready.

There’s a lot of negatives in this phrasing, so can you turn it around and, instead of saying what we should not, do, say what you think we should?  The logical conclusion of what you are suggesting is that we should not ship _any_ of pattern matching until _all_ of it is ready.  But since this is a story that will play out for a long time, that means no one gets the benefit of this relatively simple form for years.  Is that really what you are suggesting?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20200913/8298372b/attachment.htm>


More information about the amber-spec-experts mailing list