From: Nikolai Weibull Date: 2005-08-31T06:09:53+09:00 Subject: Re: Aesthetics of while ... do ... end versus while ...: ... end Christian Neukirchen wrote: > Nikolai Weibull writes: > > Christian Neukirchen wrote: > > > while predicate?; code; end > > I'd rather use : or do than ; here. My question was with regards to > > putting the whole while on one line, yes. > I disagree, and I don't see why everyone hates the semicolon. > > I think it is more consistent to write > > while foo; bar; baz; quux; end > > than to write > > while foo: bar; baz; quux; end > > because, after all, this is not allowed: > > while foo: bar: baz: quux: end Yes, but you can write it as while foo: bar; baz; quux end Which, in my opinion, clearly separates the foo from the bar and the baz. > ";" just means the same as a newline, and is meant to be used that > way, YMMV. And so is : or do after a while. I have nothing against ; per se, but in this case I'd rather use : or do, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}