News for hackers. Stuff that matters.
Re:Why perl has separate arrays and hashes: It's as if they ... by masklinn on Tuesday June 21, 2011 @01:44PM (#2679659)
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.

Re:Why perl has separate arrays and hashes: It's as if they ... by jbellis on Tuesday June 21, 2011 @02:10PM (#2679766)
Tcl doesn't really fall into this category -- Tcl's hashes are called arrays, but for sequential structures you would use a list instead.
Re:Why perl has separate arrays and hashes: It's as if they ... by masklinn on Tuesday June 21, 2011 @02:15PM (#2679789)
Oh crap, the terminology got me confused, I thought they were used the same. Fixing now.
Re:Why perl has separate arrays and hashes: It's as if they ... by sjs on Wednesday June 22, 2011 @11:33AM (#2683557)
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.