From: Martin DeMello Date: 2004-08-19T18:00:53+09:00 Subject: Re: When to use parentheses around method args? George Ogata wrote: > Richard Dale writes: > > > Are there any rules of thumb for when it's a good idea to leave out the > > brackets and when to use them? > > I don't think there are "rules of thumb" for definitions, but assuming > you have a newline after the args (i.e., you're not squashing a whole > def...end on one line or something), parens on def-lines are _always_ > redundant, thus I _never_ use them. Perhaps it's just Emacs' syntax > highlighting, but I find it perfectly clear, even for operator-defs > like "def << x". Whereas I always use them for defs, since it fits my perception of x as a placeholding parameter rather than a value. martin