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.bier...@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 >