No, ^(x) is not a legal expression, so you don't have to make block in same line, no semicolon insertion will happens here.
see this post: https://mail.mozilla.org/pipermail/es-discuss/2008-December/008296.html ----- Original Message ----- From: "Jon Zeppieri" <[EMAIL PROTECTED]> Newsgroups: gmane.comp.lang.javascript.ecmascript4.general To: "P T Withington" <[EMAIL PROTECTED]> Cc: "es-discuss" <[EMAIL PROTECTED]> Sent: Thursday, December 04, 2008 3:09 AM Subject: Re: Allen's lambda syntax proposal > 2008/12/3 P T Withington <[EMAIL PROTECTED]>: >> >> - prefix ^ might be confused with the infix operator of the same name > > With semicolon insertion, isn't this a bigger problem? > > The opening brace will need to be on the same line as the formals, > otherwise the syntax is ambiguous: > > ^(x) { > x = x * x > ^(a,b,c,d,e,f,g) > { > x > } > } > > And, if it is on the same line, it's still bad for a top-down parser: > > ^(x) { > x = x * x > ^(a,b,c,d,e,f,g) {x} > } > > Will semicolon insertion be illegal inside a lambda body? > > -Jon _______________________________________________ Es-discuss mailing list Es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss