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 `^`.
_______________________________________________
Es-discuss mailing list
Es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to