> On Mar 15, 2018, at 3:48 PM, Remi Forax <[email protected]> wrote: > > ----- Mail original ----- >> De: "mark" <[email protected]> >> À: "amber-spec-experts" <[email protected]> >> Envoyé: Jeudi 15 Mars 2018 20:06:40 >> Objet: Re: break seen as a C archaism > >> On 2018-03-15T14:50:45 -0400 >> Brian Goetz <[email protected]> wrote: >>> >>>> If you are reconsidering options, reconsider "yield", meaning >>>> "break current context with this value". >>> >>> Still feeling a little burned by first time we floated this, but willing >>> to try another run up the flagpole.... >> >> Silly idea, but... *puts on fireproof suit*: >> >> "finally x;" > > I believe we can also use any new keywords given that you can not have an > identifier followed by an identifier in Java. > > by example > pass x; > quit x; > end x;
Remember that in this situation (switch expressions), `x` can be any expression, not just an identifier. So “pass x;” cannot be confused with existing syntax, but “pass (x)” can be (looks like a method call). —Guy
