News for hackers. Stuff that matters.
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.
Re:Go is not an easy language by Gaelan on Monday February 22, 2021 @03:42AM (#26222194)
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.