From: "ara.t.howard" Date: 2008-10-03T14:17:07+09:00 Subject: Re: Ordered hash hack for < ruby 1.9? On Oct 2, 2008, at 11:05 PM, Ben Johnson wrote: > Thanks Erik, I agree 100%. I ONLY applied this when testing, but that invalidates the tests ;-) > where > performance really isn't an issue. I just needed hashes to iterate > in a > consistent order. What was unique about my situation is that the hash > order didn't matter to the functional purpose of the method. It > mattered > only when I needed to do assertions in my tests. > > Honestly, if order if meaningful you should use an array. I think > any of > the above gems are not the best choice when it comes to performance. arrayfields gives you both - an array with hash access a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama