Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: