From: Kenneth McDonald Date: 2006-10-13T13:53:14+09:00 Subject: Re: Any way to get lists to throw exceptions on incorrect accesses? Eero Saynatkari wrote: > Since you asked.. :) > > We have managed to make do without Array access raising exceptions. > > I would REALLY recommend leaving behind the baggage of any previous > languages and take a head-first plunge. In Ruby, Array access returns > a nil if the index is not found. Embrace it! Form your code around the > Ruby idioms, not the other way around! > > The payoff will be much greater. > Certainly possible. I'm not uncomfortable with new ways of doing things (I really like Ruby iteration, for example), I'm just worried this difference might cause hard-to-find errors. But I just posted that as a more general question, so 'nuff said here :-)