Mailinglist Archive: yast-devel (224 mails)

< Previous Next >
[yast-devel] until in ruby

Hi,

I was looking for a until loop in Ruby and found this:

begin
<code>
end until <condition>

It is heavily used in the generated code. Unfortunately the Ruby
inventor himself doesn't like this and would like to remove it,
see:

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/6741

AFAIS there's no real until loop in Ruby. The common suggestion
is to use loop:

loop do
<code>
break <condition>
end

Is that true? Or do newer Ruby version offer a real until loop?

Regards,
Arvin

--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups