<div dir="auto">Looks really good. I am especially grateful about the part that says grouping related cases together.<div dir="auto"><br></div><div dir="auto">With this feature, switch has officially reached a bedrock status. It has effectively become our if statement for expressions. Incredibly excited to play with this when it comes out.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 19, 2024, 1:46 PM Alex Buckley <<a href="mailto:alex.buckley@oracle.com">alex.buckley@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 4/19/2024 6:05 AM, Angelos Bimpoudis wrote:<br>
> A while ago we discussed on this list about enhancing the |switch| <br>
> ​ construct to<br>
> support |case|​ labels that match exceptions thrown during evaluation of the<br>
> selector expression. A draft JEP for this feature is now available at:<br>
> <br>
> <a href="https://bugs.openjdk.org/browse/JDK-8323658" rel="noreferrer noreferrer" target="_blank">https://bugs.openjdk.org/browse/JDK-8323658</a> <br>
<br>
I tightened things up throughout and added myself as a reviewer.<br>
<br>
Alex<br>
</blockquote></div>