On May 20, 2011, at 7:43 AM, Brendan Eich wrote:

> That is simpler, but I believe I have seen code like this:
> 
>   L: { S1; S2; S3; } where S2 is a label-using statement, specifically a 
> break from the outer block, a sugared downward goto that skips S3.
> 
> Probably only in tests for labels!
> 
> Yes, the strawman proposes to break such code.

Oops, I'm wrong (pre-caffeine here, sorry!) -- the strawman has NonEmptyBlock 
as a LabelUsingStatement, so does not break this at all.


> So requiring {; or similar would be a simpler change and non-breaking in the 
> sense that one can rescue such code so it works in Harmony as it used to, by 
> adding one character. Good idea!

Your idea still may help make a single spec-grammar that does not require some 
arbitrary-lookahead decision procedure on the side.

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to