Allen's lambda syntax proposal

Jon Zeppieri jaz at bu.edu
Thu Dec 4 12:34:24 PST 2008


On Thu, Dec 4, 2008 at 3:23 PM, David-Sarah Hopwood
<david.hopwood at industrial-designers.co.uk> wrote:
> Jon Zeppieri wrote:
>
>> 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}
>> }
>
> Same result as above.

Actually, I think we're both wrong.  If I'm reading the spec
correctly, no semicolon would be inserted, and the whole thing would
be a syntax error.  The "offending token" here is '{', but it's not
separated from the previous token -- namely, ')' -- by at least one
LineTerminator.

At any rate, it's a problem.

-Jon


More information about the Es-discuss mailing list