Switch expressions -- gathering the threads

Dan Smith daniel.smith at oracle.com
Tue Apr 10 22:20:01 UTC 2018


> On Apr 10, 2018, at 2:30 PM, Remi Forax <forax at univ-mlv.fr> wrote:
> 
> I'm not sure this difference is important.
> 
> What about the example below, multiple labels or a fallthrough ?
>   switch(x) {
>       case 0:
>         ;
>       case 1:
>   }

My request is to call this an example of fallthrough.

I think you're trying to make a point that some forms of switches with fallthrough behave the same as switches with multiple labels. Sure, that's fine. I still think it's helpful to talk about the two cases separately, as distinct features, because the practical use cases are very different.

—Dan


More information about the amber-spec-experts mailing list