Tasty hashes

by Adriano Ferreira

The last amusing discussion in perl6-language@perl.org mailing list was a proposal on renaming Hash to Dict. Perl and, after it, Ruby use the word "hash" for their associative arrays while Python and Smalltalk use "dictionaries" and Java uses "maps". As so many things are changing while going from Perl 5 to Perl 6, the suggestion was attempting to introduce a "better name" while it is still possible.


Aristotle Pagaltzis
2007-06-02 08:41:54

Wouldn’t that be “(it’s French, mon ami)”? :-)

2007-06-05 04:21:11
You know, I never even thought about it. To me, a hash is a hash is a hash. When I code in java, I use the map function to create a hash. I've never thought of the end result as "a map". Python calls it "a dictionary"? That's descriptive, I suppose, but too many syllables.