News for hackers. Stuff that matters.
Re:The Two Pillars of JavaScript: Part 1: How to Escape the ... by anon1385 on Saturday December 13, 2014 @07:51AM (#8745076)
>The nicest part of it is the built-in hash table type and the related syntactic sugar that everyone for whatever reasons insists on calling "object".

People call it an object because that is what it is. If your code is using Javascript objects as general purpose hash tables with the normal syntactic sugar then your code is broken[1]. The correct way to use an object as a hash table involves a bunch of ugly extra syntax that makes it more verbose than hash tables in any other language I'm aware of.

[1] http://www.devthought.com/2012/01/18/an-object-is-not-a-hash...

Re:The Two Pillars of JavaScript: Part 1: How to Escape the ... by nateroling on Saturday December 13, 2014 @12:04PM (#8745603)
Object.create(null) creates an empty object with no prototype that you can safely use as a hash, as mentioned in the article you linked.