From: Florian Gross Date: 2004-11-11T23:13:28+09:00 Subject: Re: array.each restart when array is changed ts wrote: > From the "ruby user guide" > > ------------------------------------------------------------ > With `retry', one can define an iterator which works the same as `while', > but it's not practical due to slowness. Thank you, I have not read the Ruby User Guide (maybe I should now that I know it documents some interesting details of Ruby?) and I'm pleased about this behavior indeed being by purpose. It might be too slow for completely replacing the built-in while with it, but there might well be some interesting things it can still be used for. I keep being amazed at how much hidden power there is in Ruby while it still remains so simple. matz really spent lots of thought about carefully selecting only the best features.