Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
macca321
· 13y ago · 0 comments
I wish ruby had named the Hash class properly. It makes reading the article slightly confusing. Hash != Hashtable
Comments
[–]
__david__
13y ago
You can blame Perl for that. Ruby took "Hash" from Perl's name for its native hash tables.
[–]
tabbyjabby
13y ago
Of course the Hash class in Ruby implements a hash table. What makes you think it doesn't?
[–]
mike
13y ago
I 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.