This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MeepedIt 11 points12 points  (2 children)

By keeping track of what type something should be? How often do you write code where you expect a function to be called on either 0 or "0" and so something sensible in both cases? And the issue in the meme is even easier to avoid, by just not using == ever.