I\'m inclined to write if statements by using logical negation operator:
if (!p) some_code();
Some people around me tend to use explicit co
the only pragmatic reason i see there is that in the second case the type of values considered for comparison is more explicit (es. foo == null foo is a ponter type, !foo can't say if it is a pointer, a bool, etc)