Allen's lambda syntax proposal

P T Withington ptw at
Sun Dec 7 07:30:42 PST 2008

On 2008-12-06, at 00:23EST, David-Sarah Hopwood wrote:

> P T Withington wrote:
>> Would it work to move the parameter list inside the block (as in the
>> Smalltalk way, but as a regular parameter list, not using ||'s)?
>>  {(a, b) a + b}
>> AFAICT, `{(` is a syntax error for an expression in es3.
> I think this is unambiguous, but I don't like it because it has no
> symbol or combination of symbols that is specific to a lambda.
> ( "{(" can occur as the start of a block.)

   ^{(a, b) a +b}

Perhaps?  An expression cannot start with `{(`, a statement cannot  
start with `^`.

More information about the Es-discuss mailing list