Allen's lambda syntax proposal

Maciej Stachowiak mjs at apple.com
Thu Dec 4 10:28:45 PST 2008


On Dec 4, 2008, at 7:18 AM, Michael wrote:

> Would this form also be ambiguous and/or too difficult to parse?
>
> {=> 9*9}()
> {a => a+b}(12)
> {(a,b) => a+b}(12,6)

I imagine it would be problematic for a top-down parser because you  
may have to parse an unbounded number of characters to determine if  
the initial parameter list is in fact a parameter list or a comma  
expression.


More information about the Es-discuss mailing list