On Thu, Jan 12, 2012 at 4:26 PM, Thaddee Tyl <[email protected]> wrote:
> I have heard many fellow programmers say that, while block lambdas
> would be welcome, Ruby's |a, b| syntax is ugly.
> I thought I was the only one feeling this way, but since I am not, I
> would like to ask why the parentheses cannot be used there.
>
>    { (a, b) a + b }
>
> cannot conflict with any existing program; at least I don't see how it can.

And if people choose to use newlines in their code?

{(a, b)
   a + b}

... already has a meaning.

-Jon
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to