Draft JLS Spec about unnamed patterns and variables

Archie Cobbs archie.cobbs at gmail.com
Wed Feb 22 15:38:51 UTC 2023


On Wed, Feb 22, 2023 at 9:27 AM Tagir Valeev <amaembo at gmail.com> wrote:

> I think we should consider dead patterns as dead code, so this sample
> should not compile.
>

FWIW I agree. To me intuitively the second (grouping) example is just a
"syntactically sugared" version of the first. Semantically, therefore, they
should be treated the same way.

-Archie


-- 
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-spec-observers/attachments/20230222/07189e45/attachment.htm>


More information about the amber-spec-observers mailing list