News for hackers. Stuff that matters.
Re:JavaScript in 2015 by untog on Wednesday January 07, 2015 @12:21PM (#8851768)
I've been writing JS professionally for, what, a decade now - and I've never once had this issue.
Re:JavaScript in 2015 by wal0 on Monday January 12, 2015 @03:10PM (#8876132)
It's not about this causing issues IMO. It's just.. why? Why would '+' not be commutative? Why not throw an error? What is the use-case for "adding" '[]' and '{}'?

Or, put another way: why would a programmer want to have this "feature" instead of being notified: "hey, you're adding '[]' and '{}', that doesn't make any sense, fix that!"

Sure you can work with a language like that. But it sure doesn't feel like somebody thought all of this this through.