From: dblack@... Date: 2002-10-31T00:42:25+09:00 Subject: Re: method-call style (was Re: Snippet: Tiny Featureless Ruby Web Server) Hi -- On Thu, 31 Oct 2002, William Djaja Tjokroaminata wrote: > Bulat Ziganshin wrote: > > > WDT> This is just my personal style. When I write network simulations (not > > WDT> Ruby code fragments), I never put () for methods that are defined simply > > WDT> using "attr_reader", but other methods I usually put () to remind > > WDT> me that I am "doing some real action" here. > > > i think real difference that you you want to highlight is between pure > > functions and functions which have side-effect > > Hi Bulat, > > Yes, I agree with you; I think you have made it clearer, similar to Paul's > post. Aren't there cases where that might change, if the implementation changes? It seems that () is serving as a comment, potentially a fragile one. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav