Hello, i am trying to fix a bug in Rails, and also improve readability
of the code i am coming across in this process. I have a question: is
map(&:to_s)
preferred over
map { |n| n.to_s }
?
I was going to use the first form, but decided to ask first.
Alexey.
on 2011-12-11 15:29
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.