2009/12/22 Benoit Daloze <eregontp / gmail.com>: > I would add than using i += 1 is often doing it the wrong way in Ruby. We > use Enumerable most of the time, and try to not create any index (because > that's awful, you need an initialization(i=0), a step to go forward(i+=1), > and you keep a useless index at the end). Note sure about your "often" - iterating in the majority of cases can certainly be done without indexing an Array. There are other uses for "a += 1" though - such as counting. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/