Nikolai Weibull <mailing-lists.ruby-talk / rawuncut.elitemail.org> 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

";" just means the same as a newline, and is meant to be used that
way, YMMV.

>         nikolai
-- 
Christian Neukirchen  <chneukirchen / gmail.com>  http://chneukirchen.org