New JEP: Switch Expressions for the Java Language

Brian Goetz brian.goetz at oracle.com
Wed Dec 13 14:38:31 UTC 2017


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

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