From: Jim Weirich Date: 2005-04-22T23:01:59+09:00 Subject: Re: for .. in .. else? Adam Keys said: > I agree the {} block looks more like something that yields a value than > do..end. I think I had it that way at first but the line spilled over > past column 80 so I changed it to a do...end, which I use when a block > spans multiple lines. Is that a common idiom or am I unique in this > regard? It is a common convention, but not the only one. An alternate convention (which I follow tend to follow) is to use {} for blocks that return values and do/end for blocks that do not. -- -- 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)