From: George Ogata Date: 2006-03-10T04:38:41+09:00 Subject: Re: Having a block executed in the context of an instance Anthony DeRobertis writes: > Dominik Bathon wrote: > >> meth .attr=42 >> >> I would say that would also be meth.attr=42 and not meth(.attr=42). > > The spacing, though, makes it look like the latter. The spacing really > makes it look like 42 goes with .attr, not with meth. > > Of course, then there is: > > meth . attr = 42 > > and other fun variations :-( It's a bit iffy, isn't it? Wouldn't it also break Matz's golden rules of when to use call parens? I believe it goes: * if there are no args, don't use parens. * elsif you use the return value, use parens. * else parens are optional.