News for hackers. Stuff that matters.
Re:The Birth and Death of JavaScript [video] by CatMtKing on Thursday April 17, 2014 @05:45PM (#7606629)
You could say it's a snipe at the weak type system that Javascript has.

I dunno, as someone without much experience with Javascript, it is a little odd that arrays return the index alongside the value by default.

Re:The Birth and Death of JavaScript [video] by anaphor on Thursday April 17, 2014 @07:23PM (#7607159)
It has little to do with the type system. Variadic arguments can be typed given a type system that supports it.
Re:The Birth and Death of JavaScript [video] by xiaomai on Thursday April 17, 2014 @06:29PM (#7606907)
arrays don't do that, but map() does. Normally in js you can just ignore arguments you don't care about, but it does lead to surprises like this one.