We certainly have very different views on readability.
Compare:
Code: Select all
if ( pointer == NULL )
if ( pointer != NULL )
if ( !pointer )
if ( pointer )
And if you do the [tt]if ( NULL == pointer )[/tt] thing in a project we both work on (and I have a saying in), you will die. In interesting ways. Over a period. (To quote Terry Pratchet. )
You seriously suggest adopting an unintuitive, backward coding style that is hard to read to catch a possible error source that is perfectly handled by [tt]-Wall -Werror[/tt]?
Code: Select all
test.c:4: warning: suggest parentheses around assignment used as truth value