I ended up chatting with a guy named Philip, who has apparently been coding in C for 20 years, has a vast library here, thinks C is the easiest language around, and has general disdain for anything that isn't compiled into bytecode. He especially didn't like Perl.
One of the reasons he didn't like Perl is the confusion he felt it created with regards to the terms "hash" and "associative array". His claim was that they're really two different things, although I could never get him to explain what exactly the difference was.
So, one of my goals for the week is to find out exactly what the difference is.
the difference... (Score:1)
The difference is that they are exactly the same.
-- FOLDOC [ic.ac.uk]
Hash vs AA (Score:1)
An associative array is a source language level concept. It means an array which is indexed by arbitrary, unordered values, typically (but not necessarily) strings.
A hash table is a data structure in which keys are crunched through a hashing function in order to get the actual index used in the table. This is to handle both the unordered-ness and the sparseness of keys.
Associative arrays need no
Re:Hash vs AA (Score:1)
Correct me if I'm wrong, but to add to this I believe important distinction that a hash value is a number created by a function which ef