[removed] What is the difference between `if (!x)` and `if (x == null)`?

后端 未结 6 2042
遥遥无期
遥遥无期 2020-12-08 05:18

What is the difference between if (!x) and if (x == null); that is, when can their results be different?

6条回答
  •  情书的邮戳
    2020-12-08 05:51

    This question/answer has some isTrue isFalse functions which may help folks:

    forgiving isTrue isFalse

提交回复
热议问题