Keyword of the pattern guard

Hunor Szegi hunor.szegi at gmail.com
Mon Jul 4 12:26:46 UTC 2022


Hi all,

At the current proposal instead of the && guards a "when" keyword will be
used. I would like to ask isn't it possible to use the "if" keyword
instead? It would be shorter and perfectly matching to the role of a
pattern guard. Do we need a new keyword? (I guess it won't be a reserved
word, only a contextual keyword.)

Regards,
Hunor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20220704/98d14cfd/attachment.htm>


More information about the amber-dev mailing list