3 ms·
I wish ruby had named the Hash class properly. It makes reading the article slightly confusing. Hash != Hashtable
by macca321 14y ago
I wish ruby had named the Hash class properly. It makes reading the article slightly confusing. Hash != Hashtable
- tabbyjabby 14y agoOf course the Hash class in Ruby implements a hash table. What makes you think it doesn't?
- mike 14y agoI believe that macca321 is wishing that, to avoid confusion, the term "hash" was reserved for referring to an individual hash code and that "hash table" was used for the data structure and the Ruby class that implements it.
- __david__ 14y agoYou can blame Perl for that. Ruby took "Hash" from Perl's name for its native hash tables.