On Jan 16, 2012, at 10:33 AM, Agis A. wrote: > My question: is this generally the preferred way to code in Rails? If yes, > why? Sorry if this sounds silly but I can't clearly see why we prefer one way > over the other.
Being able to elide the parentheses is a "convenience". But unfortunately, sometimes then more complex calls don't evaluate in the right order, and require you to use parentheses to disambiguate, which means you really can't go completely without, so there's only 2 styles possible: - mixed, sometimes indicating function calls with parentheses and sometimes not - always use parentheses I expect that when I put it like that, you'll be able to guess my preference ;-) -- Scott Ribe [email protected] http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

