Block lambda is cool, its syntax isn't

Thaddee Tyl thaddee.tyl at
Thu Jan 12 13:26:14 PST 2012

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.

This is a reaction to the following tweet:!/tabatkins/status/156813490785492992

More information about the es-discuss mailing list