Hacker News new | comments | show | ask | jobs | submit login

The most common `==` problem is `0 == ""`, IMO



As if that wasn't bad enough on it's own.

"0" == false and "" == false but "0" != ""

Edit: Or maybe a less defendable example of my point:

"0" == 0 and "" == 0 but "0" != ""




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: