News for hackers. Stuff that matters.
Re:Silly Javascript by axod on Saturday July 25, 2009 @05:39PM (#723721)
>> Why have [] syntax for "arrays"

[] syntax is for objects and arrays. As I've said, an array is just an object... Same data type.

If you didn't have a [] syntax, you wouldn't be able to use a variable to reference properties on an object.

  var baz = "foo";
  foo.bar == foo["bar"] == foo[baz]
Re:Silly Javascript by jrockway on Saturday July 25, 2009 @07:33PM (#723836)
So we're back to my main argument -- minimalism is confusing.
Re:Silly Javascript by axod on Saturday July 25, 2009 @08:20PM (#723870)
If you're more used to complexity I guess :/