Comment on Why ++[[]][+[]]+[+[]] = 10 in JavaScriptparentComments−botker14yOne of the core principles of JavaScript is to avoid errors whenever possible. Using + on arrays bothers me less than the fact that there is no error for division by zero.−pietro14yIt's not an error to divide by zero per the IEEE floating point specification, and you'll find the same behavior in most modern languages:http://en.wikipedia.org/wiki/Division_by_zero#In_computer_ar...
Comments
One of the core principles of JavaScript is to avoid errors whenever possible. Using + on arrays bothers me less than the fact that there is no error for division by zero.
It's not an error to divide by zero per the IEEE floating point specification, and you'll find the same behavior in most modern languages:
http://en.wikipedia.org/wiki/Division_by_zero#In_computer_ar...