These are convenience methods for == 0 and != 0, respectively.
The new methods take more characters to type than those forms, but they have the following advantages for some use cases:
No need for extra parentheses surrounding the outer expression.
On a cluttered line, with the ==/!= symbols and parentheses, sometimes the intent can be difficult to read clearly. Using words can help with this over symbols.
These are convenience methods for
== 0
and!= 0
, respectively.The new methods take more characters to type than those forms, but they have the following advantages for some use cases:
==
/!=
symbols and parentheses, sometimes the intent can be difficult to read clearly. Using words can help with this over symbols.