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

If == is supposed to be a numeric comparison and you are supposed to use strcmp for strings then why does == (sometimes) work on strings? Make it always coerce to a number, or die trying. Overloading it as numeric or string compare depending on what the string looks like is ridiculous.

And BTW, things that work in most cases, but not all cases, are exactly where bugs come from.




things that work in most cases, but not all cases, are exactly where bugs come from

If I didn't have such a low pain tolerance, I would get that tattooed on my body somewhere prominent.




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

Search: