From: Xavier Noria Date: 2010-10-11T20:09:11+09:00 Subject: Re: Why does a lot of code not include parenthesis? On Mon, Oct 11, 2010 at 2:25 AM, egervari wrote: > Is there any reason tastes in style have changed? I think it would be > best to stick with the parenthesis just to make everything consistent. > It should be easier to refactor code and inline things if the > parenthesis were already there after all. > > Thoughts? I think the most used style is: * parentheses around parameters in method definitions, and around regular method calls with an explicit receiver. Also when the receiver is an implicit self. * no parentheses in procedural-like calls, eg, bare puts, class-level macros like has_many in Active Record, assertion macros from Test::Unit, etc. * of course, no pointless parentheses in the conditions of an if or while statement and friends, though these ones are normally put by people new to the language, rather than being a matter of style That's what I personally follow also.