From: Charles Oliver Nutter Date: 2008-09-22T00:40:33+09:00 Subject: Re: for or each? Phlip wrote: > 'for' is arguably more readable. And it's not a performance issue - I > suspect the opcodes will be the same. It is very much a technical issue. For is generally faster because it doesn't instantiate a new scope for each loop. It shares the same scope as its containing block of code, where each creates a new scope each time the block is called. I'm reasonably sure this applies to all Ruby versions too. - Charlie