Allen's lambda syntax proposal

Yuh-Ruey Chen maian330 at gmail.com
Wed Dec 3 08:53:23 PST 2008


Eric Suen wrote:
> In feature(ES4), ES may have OptionalParameter, that will cause trouble
>
> { |a ,b = 1 | c | d | e | f }
>
> is
>
> { (|a ,b = 1 |) c | d | e | f }
>
> or
>
> { (|a ,b = 1 | c) | d | e | f }
>
> Regards,
>
> Eric Suen
>   

That should be a syntax error. Parenthesis should be required in that
case to avoid ambiguity: {|a, b = (1 | c)| ... }


More information about the Es-discuss mailing list