Hash (and hash map, hash table etc) leak too much implementation detail. What if you want a tree-based mapping instead? I like how in C++ it's map (for ordered, rb-tree based maps) and unordered_map (for unordered, hash table based maps).
HashMap = HashTable = Map = Table = Dictionary = Hash
And if you're feeling adventurous, Object.send :remove_const, :Hash #define BEGIN {
#define END }
were such a bad idea, then why is it so easy? HashMap = HashTable = Map = Table = Dictionary = Hash
possibly not qualify as "obviously bad"? The only reason you've offered up is because it is easy...One addition though:
Cocktionary = HashMap
"Dictionary" never really made sense. my %hash = ();
Hash.new
So naturally people talk of Hashes etc. I understand where you're coming from, but it's really not very important, and it would be more confusing to talk of Hash Tables as learners would naturally look for HashTable in the stdlib.Though even HashMap isn't bad because typing is a solved problem - with auto completion and touch typing two words really aren't an issue in my mind.
People get used to living with all kinds of things, but that doesn't make them any better. Yes I'm aware that this applies equally to my typing comment as to you having got used to hash.
Why in golang is a function denoted by func instead of function?
I'd guess it's because programmers prefer fewer keystrokes as long as the term remains sufficiently mnemonic.
* http://www.nntp.perl.org/group/perl.perl6.language/2007/05/m...
* http://www.nntp.perl.org/group/perl.perl6.language/2007/06/m...