From: Christian Neukirchen Date: 2006-08-15T08:00:57+09:00 Subject: Re: A use case for an ordered hash "Martin DeMello" writes: > On 8/14/06, Hal Fulton wrote: >> >> Either (=>) or [=>] would be fine with me. I'd slightly prefer >> the latter. > > Or we could use another %?{ } constructor, which are, after all, being > reserved for future expansion. > >> But the big question is, what would the class be called? I dislike >> long names such as Association or AssociativeArray or even >> OrderedHash. (I suppose the last might be best of those.) > > OHash or Assoc or even Dict (though the latter at least implies an O(1) lookup). Fun history fact: #524<5|>lilith:~/src$ grep Dict ruby-0.49/dict.c ... C_Dict = rb_define_class("Dict", C_Object); rb_name_class(C_Dict, rb_intern("Hash")); /* alias */ ... > m. -- Christian Neukirchen http://chneukirchen.org