8
$\begingroup$

I'm having a discussion elsewhere about this. I suspect that it was Perl, with the hash maps, but that is because I don't know much about older languages rather than any exhaustive research on the matter. The wikipedia article says that the data structure was invented in 1953, so it is plausible that there are earlier examples.

$\endgroup$

2 Answers 2

5
$\begingroup$

Not sure if there is a definitive answer but Smalltalk certainly had dictionaries (hash maps) built into the language (as such it can be given an OO language) and Smalltalk predates Perl.

$\endgroup$
2
$\begingroup$

AWK had associative arrays from day one.

Associative arrays seem to have been introduced in SNOBOL4. [1]

[1] https://en.wikipedia.org/wiki/Associative_array#Language_support

$\endgroup$
1
  • $\begingroup$ In this point, AWK influenced Lua. See The evolution of Lua. $\endgroup$
    – lhf
    Jul 23, 2019 at 23:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.