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

You're describing the expected behavior of === and a bug.

This is not the === operator "backfiring."



Absolutely, I was just suggesting that "you should always use the === operator" advice which I see a lot of people say(examples multiple times in this thread), does not guarantee you won't run into problems with incorrect types, and giving an explanation.

As always, you should be thinking when programming.




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

Search: