Call for bikeshed -- break replacement in expression switch

Remi Forax forax at univ-mlv.fr
Fri May 17 07:29:49 UTC 2019


----- Mail original -----
> De: "John Rose" <john.r.rose at oracle.com>
> À: "Brian Goetz" <brian.goetz at oracle.com>
> Cc: "amber-spec-experts" <amber-spec-experts at openjdk.java.net>
> Envoyé: Vendredi 17 Mai 2019 08:41:20
> Objet: Re: Call for bikeshed -- break replacement in expression switch

> (Going back to the start of this thread.)
> 
> On May 12, 2019, at 12:38 PM, Brian Goetz <brian.goetz at oracle.com> wrote:
>> 
>> We could surely take “break-with” and move on; it feels sufficiently “switchy”.
> 
> If "break L" breaks out of a statement introduced with "L"…
> 
> Then…
> 
> "break ->" could break out of a statement introduced with "->".

It's not logical for me, it's not "L", it's "L:".
If it was "break :L", i would agree.

Rémi


More information about the amber-spec-observers mailing list