Re:Ladies, look at your code. Now back to mine.
by Confusion on Saturday August 28, 2010 @06:15AM
(#1641553)
Personally, I prefer your version; the &: version starts reeking of Perl line noise. Although I believe Ruby would benefit from an _ for not explicitly named block arguments.
Re:Ladies, look at your code. Now back to mine.
by steveklabnik on Saturday August 28, 2010 @02:25PM
(#1642130)
As a random note for anyone who's wondering how this syntax came about, this is the Symbol#to_proc [1] method, which was actually a monkeypatch from Rails that ended up making its way back into Ruby proper.
Re:Ladies, look at your code. Now back to mine.
by mark_l_watson on Saturday August 28, 2010 @11:58AM
(#1641859)
I agree, I also prefer the slightly longer version. OK, enough small talk ... :-)
Crikey, should buy a book...