From: Trans Date: 2008-11-18T17:29:11+09:00 Subject: Re: [][100000000] = 1 whee! On Nov 17, 10:39 am, Charles Oliver Nutter wrote: > Mike Austin wrote: > > :) Just curious as to why Ruby automatically increases an array's size > > when items are added.  I could see where it would be convenient, but it > > also seems like bad practice.  One can, and should use a hash as a > > sparse array. > > Because it's an array, not a sparse array. Ah, a "sparse array". Is there value in this? I once re-implemented Array using a Hash as the underlying store. It was just for fun and now sits in my "trinkets" drawer. Should I release it? T. Rinkets