Guards redux

John Rose john.r.rose at oracle.com
Wed Mar 10 22:19:47 UTC 2021


On Mar 10, 2021, at 11:29 AM, Guy Steele <guy.steele at oracle.com> wrote:
> 
> Let me suggest this alternative:
> 
> Pattern:
> : ConditionalOrPattern
> : ConditionalAndPattern `&&` Guard

Clever.  Too bad we can’t do this for expressions too.

>> Guard:
>> : AssignmentExpression
> 
> Yes, “AssignmentExpression” is the right thing here.

Please see my previous objection:  I think the looseness
of AssignmentExpression leads to even worse puzzlers
than the ones you are addressing above.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20210310/8c5988d8/attachment.htm>


More information about the amber-spec-experts mailing list