Purpose of parenthesised patterns

Brian Goetz brian.goetz at oracle.com
Wed Jun 1 13:55:44 UTC 2022


You are right, that without guards they are of limited use.  We 
considered pulling them out, but in future, we are likely to see AND 
patterns, which would again require parenthesized patterns.

On 5/31/2022 1:35 PM, Izz Rainy wrote:
> With guard patterns removed and no composite "and"/"or" patterns, what's
> the purpose of parenthesised patterns? Is it simply an oversight, or am I
> missing something?


More information about the amber-dev mailing list