Reply to comment

I'd argue that programmers

I'd argue that programmers relying on how they "expect" a language to act when they haven't taken the time to learn it is The Real WTF here.

It's actually not a stretch to expect a language to act like the docs say the language will act. Nowhere does it say that == is sufficient for all logical tests. it does however explicitly say that "0" == 1 (as does any string). In any case, this is what Unit Testing helps you avoid in any language - programming based on assumptions and expectations instead of reality.

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options