Pattern matching on multiple objects
David Alayachew
davidalayachew at gmail.com
Sun Apr 23 17:23:28 UTC 2023
And to explain further, the constant pattern could also be a Number instead
of an enum. I also think there were mentions of using existing instances as
well?
If this were possible, we could follow Tyler's suggestion, wrap the values
in a record, then destructure like normal, only using a "constant pattern"
instead.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20230423/6439f428/attachment-0001.htm>
More information about the amber-dev
mailing list