Exception handling in switch (Preview)

David Alayachew davidalayachew at gmail.com
Fri Apr 19 19:49:34 UTC 2024


Looks really good. I am especially grateful about the part that says
grouping related cases together.

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.

On Fri, Apr 19, 2024, 1:46 PM Alex Buckley <alex.buckley at oracle.com> wrote:

> On 4/19/2024 6:05 AM, Angelos Bimpoudis wrote:
> > A while ago we discussed on this list about enhancing the |switch|
> > ​ construct to
> > support |case|​ labels that match exceptions thrown during evaluation of
> the
> > selector expression. A draft JEP for this feature is now available at:
> >
> > https://bugs.openjdk.org/browse/JDK-8323658
>
> I tightened things up throughout and added myself as a reviewer.
>
> Alex
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-spec-observers/attachments/20240419/7976668a/attachment.htm>


More information about the amber-spec-observers mailing list