From: Jim Freeze Date: 2002-08-01T07:47:36+09:00 Subject: Re: Style question On Thu, Aug 01, 2002 at 07:26:54AM +0900, Hal E. Fulton wrote: > > Yes, that's how I write C/C++ and Java and Javascript, etc. > > But Ruby is "semi-line-oriented." > > Yet if you find some way of continuing the > line, you could do this. Very ugly, though: > > [1, 2, 3].each \ > {|x| > # ... > } > > It used to bother me to see code in C/C++ that was of the form for() { ...do something } I was a big proponent of for() { ..do something } But after using Ruby for a year, seeing that in C/C++ doesn't bother me as much. (In fact, the brace on the first line is a coding standard for the bsd kernel, so I guess it must not be all that bad. :) Also, this style has never bothered me in Ruby. I'm not sure why. -- Jim Freeze If only I had something clever to say for my comment... ~