New JEP: Switch Expressions for the Java Language

forax at univ-mlv.fr forax at univ-mlv.fr
Wed Dec 13 18:55:19 UTC 2017


----- Mail original -----
> De: "Brian Goetz" <brian.goetz at oracle.com>
> À: forax at univ-mlv.fr
> Cc: "Kevin Bourrillion" <kevinb at google.com>, "amber-spec-experts" <amber-spec-experts at openjdk.java.net>
> Envoyé: Mercredi 13 Décembre 2017 15:38:31
> Objet: Re: New JEP: Switch Expressions for the Java Language

> We came to pretty much the same conclusion internally.  Lambdas and
> switch expressions are where this is needed.

Ok, cool.

Rémi

> 
> On 12/13/2017 5:08 AM, forax at univ-mlv.fr wrote:
>>
>> I think we should only allow throw as an expression if the precedent
>> symbol was '->', i.e. only allows throw as an expression in lambda
>> body and in the body of an expression switch.
> > It seems to cover what we want without making the code too un-java-y.


More information about the amber-spec-experts mailing list