Switch expression fall through
Gavin Bierman
gavin.bierman at oracle.com
Wed Mar 14 16:30:03 UTC 2018
> On 13 Mar 2018, at 23:15, Stephen Colebourne <scolebourne at joda.org> wrote:
>
> A recent email to amber-spec implies that expression switch will
> support fall-through.
> http://mail.openjdk.java.net/pipermail/amber-spec-experts/2018-March/000332.html
>
> Is this true? If so, on what basis is this justified?
>
> (Fall through in switch is the spawn of the devil. Allowing it in the
> brand new expression switch would be horrific IMO.)
If you write all your expression switches using the -> form exclusively, then you will be able to forget that fall-through even exists.
Gavin
More information about the amber-dev
mailing list