Keyword of the pattern guard

Zheka Kozlov orionllmain at gmail.com
Mon Jul 4 19:50:37 UTC 2022


https://mail.openjdk.org/pipermail/amber-dev/2022-March/007247.html

вт, 5 июл. 2022 г. в 01:21, Hunor Szegi <hunor.szegi at gmail.com>:

> 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/20220705/0c9eb8d6/attachment.htm>


More information about the amber-dev mailing list