Nikolai Weibull <mailing-lists.ruby-talk / rawuncut.elitemail.org> writes:

> OK, this is really quite lame, but what do you people prefer:
>
> while <test> do <something> end
>
> or
>
> while <test>: <something> end
>
> ?
>
> The latter is shorter, but the puncutation sometimes meshes badly with
> the test.  Any insights?,

I generally use 

  while predicate?
    code
  end

or, if I want it to be on a single line (can't remember doing that for
while-loops):

  while predicate?; code; end

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