Sharing my experience with Switch Expressions

Chen Liang chen.l.liang at oracle.com
Sun May 11 15:38:26 UTC 2025


Hi David,
I wonder if your code is open for review. If you can provide your actual code, I think we can have a better grasp of the whole situation.

Regards, Chen Liang
________________________________
From: amber-dev <amber-dev-retn at openjdk.org> on behalf of David Alayachew <davidalayachew at gmail.com>
Sent: Sunday, May 11, 2025 9:48 AM
To: amber-dev <amber-dev at openjdk.org>
Subject: Re: Sharing my experience with Switch Expressions

Let me also add one thing.

I had started this project before Record Patterns had been released. So, it was only incidentally that I had ended up using a set of nested Switch Expressions -- I was forced to back then.

I know for a fact that, had I been given the opportunity, I would have done things flat from the beginning. Nesting switch expressions is definitely not my first choice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20250511/c28cf32a/attachment.htm>


More information about the amber-dev mailing list