[patterns] Draft Spec for JEP 375 Pattern Matching for instanceof (Preview 2)
Gavin Bierman
gavin.bierman at oracle.com
Tue Mar 17 08:59:54 UTC 2020
Thanks. Must have slipped under the radar. Will fix soon.
Gavin
Sent from my iPhone
> On 17 Mar 2020, at 04:33, Tagir Valeev <amaembo at gmail.com> wrote:
>
>
> Hello!
>
> Just a reminder that parenthesized expression is still not covered by the spec draft. I expect to see it in chapter 6.3.1. Without this, even some samples listed in the spec draft itself are incorrect. E.g. the sample in 6.3.2: if (!(o instanceof String s)) {...
>
> With best regards,
> Tagir Valeev
>
>> On Mon, Mar 16, 2020 at 10:04 PM Gavin Bierman <gavin.bierman at oracle.com> wrote:
>> Dear experts:
>>
>> A draft language spec for JEP 375 (Pattern Matching for instanceof) is available at:
>>
>> http://cr.openjdk.java.net/~gbierman/jep375/latest
>>
>> Main change from Preview 1 is, as discussed on this list, support for deconstruction patterns over record types.
>>
>> Comments welcome!
>>
>> Thanks,
>> Gavin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20200317/69b07a51/attachment.htm>
More information about the amber-spec-experts
mailing list