News for hackers. Stuff that matters.
Re:Ruby is beautiful (but I'm moving to Python) by djacobs on Sunday November 28, 2010 @04:03PM (#1948292)
That's true, but the modifier character* (not more than one) is consistent: & says "take the named method, call to_proc on it, and pass it in as a block". Since many methods allow blocks to be passed to them, this kind of code is useful and well-understood, I think.

I want to note that the &:even? idiom is only used in the simplest cases.

There are no comments on this comment yet.