JEP325: Switch expressions spec
Guy Steele
guy.steele at oracle.com
Fri Apr 20 18:58:48 UTC 2018
> On Apr 20, 2018, at 2:55 PM, Guy Steele <guy.steele at oracle.com> wrote:
> . . .
> Motto: “It’s not fallthrough, it’s just a SwitchBlockStatementGroup.”
So the syntactic explanation for switch expressions would generalize from
"case a -> s;" means "case a: break s;”
to
"case a -> case b -> … case z -> s;" means "case a: case b: … case z: break s;”
More information about the amber-spec-experts
mailing list