in reply to Extending Array

Yes, I was thinking associative array when I wrote that, so I was incorrect.

Anyway, thank you for the answer. It's so obvious, I don't know why I didn't manage to come up with it myself.

Replies are listed 'Best First'.
Re^2: Extending Array
by Jenda (Abbot) on Mar 21, 2012 at 23:57 UTC

    The person that concocted the term "associative array" should be ... excommunicated. This misguided attempt at creating an "easier to understand" term has caused so much confusion ...

    Say NO to associative array!

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.

      The person that concocted the term "associative array" should be ... excommunicated.

      The term 'associative array' way pre-dates the overloading of the term 'hash' as a name for 'content addressable storage'.

      • SNOBOL: circa 1962 had associative arrays implemented using a form of hashing and called them 'tables'.
      • MUMPS: circa 1966 had associative arrays implemented using sparse B-trees and just called them 'arrays'.
      • REXX: circa 1979 had associative arrays implemented using binary trees and called them 'stems'.

      The term is a description of the abstract mechanism of addressing data by what it contains (the value is associated with its key); rather than by where it is (a standard C-type array); or how that abstraction is implemented (Perl's hashes).

      Silly to condemn a term (or its unknown coiner).


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?

Re^2: Extending Array
by Anonymous Monk on Mar 22, 2012 at 03:20 UTC
    I prefer dictionary because I get to say Richard :)