Pattern Matching - why "when" instead of "if"?

David Alayachew davidalayachew at gmail.com
Tue Dec 12 05:11:59 UTC 2023


Hello,

Questions about Pattern-Matching belong on the project that introduced them
-- Project Amber. Here is their mailing list. But I have already CC'd them
on this email.

As for your question, I myself asked almost the exact same question and got
an answer straight from the horse's mouth. Here is a link.

https://mail.openjdk.org/pipermail/amber-dev/2022-November/007603.html

Let me know if you would like any clarifications.

Thank you for reaching out!
David Alayachew

On Mon, Dec 11, 2023 at 9:00 PM Lou ​ <l.spitzmueller at hotmail.de> wrote:

> Addendum: Why got the previous "&&" syntax dropped in favor of "when"?
>
> P.S.: I hope this response gets correctly added to the thread:
> https://mail.openjdk.org/pipermail/loom-dev/2023-December/006339.html
> Sorry if it doesn't.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20231212/9d5a8dbd/attachment-0001.htm>


More information about the amber-dev mailing list