From: Jim Weirich Date: 2005-05-13T01:11:31+09:00 Subject: Re: {} vs begin/end [was Re: object loops and what they return] David A. Black said: > It looks like you can only claim to be mainstream if you use *both* > styles :-) Or am I reasoning wrongly? Since value returning blocks tend to be shorter than side-effecting blocks[1], I'm not surprised that there is a correlation between the two styles. I guess do/end vs {} is Ruby's version of the "One True Brace Style" argument. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas) [1] I have no proof of this ... so shoot me.