Re:Go is not an easy language
by wizzwizz4 on Monday February 22, 2021 @03:23AM
(#26222100)
Experienced programmers will know that such a thing is possible, but I've never seen any (non-JavaScript, non-PHP) language where primitive arrays involve a hash table.
[ Parent
| on HN ]
And even in JS and PHP (and Lua) where arrays and hash tables are technically the same data structure, a hash table used as an array isn't actually indexed on elements, just numbers, so you don't get O(1) search.