Finalizing in JDK 16 - Pattern matching for instanceof
forax at univ-mlv.fr
forax at univ-mlv.fr
Sun Sep 13 17:49:17 UTC 2020
> De: "Brian Goetz" <brian.goetz at oracle.com>
> À: "Remi Forax" <forax at univ-mlv.fr>
> Cc: "Gavin Bierman" <gavin.bierman at oracle.com>, "amber-spec-experts"
> <amber-spec-experts at openjdk.java.net>
> Envoyé: Dimanche 13 Septembre 2020 15:20:28
> Objet: Re: Finalizing in JDK 16 - Pattern matching for instanceof
>> 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.
I think we should release features in sync, by example, instanceof T t and switch with the type patterns are the very similar so they should both have the same preview status.
Rémi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20200913/19686808/attachment.htm>
More information about the amber-spec-experts
mailing list