JEP325: Switch expressions spec

Brian Goetz brian.goetz at oracle.com
Thu May 10 15:32:04 UTC 2018


> On May 10, 2018, at 11:03 AM, Guy Steele <guy.steele at oracle.com> wrote:
> 
> 
>> On May 10, 2018, at 10:11 AM, Brian Goetz <brian.goetz at oracle.com> wrote:
>> 
>> This was the thinking behind UA1; that sometimes you were going to want to "fall into" an arrow case
> 
> "What I propose IS NOT FALLTHROUGH!” he continues to howl into the darkness (but otherwise keeps his mouth zipped, because he is done arguing** :-).

Didn’t mean to step on that landmine; my comment was merely syntactic.  

> The introduction of patterns may disrupt that model.  If so, so be it, but that is a big-deal change, and it will need to be explained carefully.

It does in at least one degree.  Once you have nested patterns, or guards, or explicit `continue`, you need a way to “re-run” the switch starting somewhere other than the beginning.  



More information about the amber-spec-observers mailing list