Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Javascript does not conflate arrays and hashes.

Technically Javascript does not have hashes at all, and you use bare objects instead, the confusion between objects and Array comes from PHP reprobates.

Lua is an other language with no arrays, and where hashes are used in stead. Additional entrants in the category are ~~Tcl~~ (got corrected, Tcl's associative arrays are called "arrays" but it has a separate "list" type for indexed sequences) and Awk.



Tcl doesn't really fall into this category -- Tcl's hashes are called arrays, but for sequential structures you would use a list instead.


Oh crap, the terminology got me confused, I thought they were used the same. Fixing now.


Ok don't include JavaScript. So there is only PHP that does this? I'm just trying to find out where the article is coming from. I didn't think this was a common theme amongst languages.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: