Block lambda is cool, its syntax isn't

Jon Zeppieri zeppieri at
Thu Jan 12 13:35:38 PST 2012

On Thu, Jan 12, 2012 at 4:26 PM, Thaddee Tyl <thaddee.tyl at> 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.


More information about the es-discuss mailing list