From: Massimiliano Mirra Date: 2002-07-08T01:33:04+09:00 Subject: Re: Pre-RCR... nil.empty? On Sun, Jul 07, 2002 at 10:24:04PM +0900, Dave Thomas wrote: > Of course, nil.to_a already returns [], so nil#each arguably _should_ > iterate zero times to be consistent with itself, and once you have an > #each, why not include Enumerable...? More than once it has happened to me that I was iterating upon an array many levels of calling apart from where it was generated... or *should* have been generated. The runtime error when I tried to iterate on what I thought was an array and instead was still `nil' helped me greatly to fix the problem. I can't imagine how I would have debugged it if it silently non-iterated. Massimiliano