break seen as a C archaism

Kevin Bourrillion kevinb at google.com
Fri Mar 9 22:49:21 UTC 2018


On Fri, Mar 9, 2018 at 1:19 PM, Remi Forax <forax at univ-mlv.fr> wrote:

When i asked what we should do instead, the answer is either:
>   1/ we should not allow block of codes in the expression switch but only
> expression
>   2/ that we should use the lambda syntax with return, even if the
> semantics is different from the lambda semantics.
>
> I do not like (1) because i think the expression switch will become useless


In our (large) codebase, +Louis determined that, among switch statements
that appear translatable to expression switch, 13.8% of them seem to
require at least one multi-statement case.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20180309/de5c83f9/attachment.html>


More information about the amber-spec-experts mailing list