Allen's lambda syntax proposal

Jon Zeppieri jaz at
Wed Dec 3 11:09:39 PST 2008

2008/12/3 P T Withington <ptw at>:
> - 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

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?


More information about the Es-discuss mailing list