K
Keith Thompson
Richard Heathfield said:Kaz Kylheku said:(e-mail address removed) said:
|> Keith Thompson wrote:
| [...]
|>> You can do it with no change in semantics. I wouldn't do it
|>> myself; I find
|>> if (pointer != NULL)
|>> clearer than
|>> if (!pointer)
|>
|> Not only clearer than, but opposite to.
|
| Illustrates clearly why `if (pointer != NULL)' is preferred - if
| you strive for clarity that is.
I find them equally clear. But then, I'm not a beginner with C.
Neither is Keith Thompson, but he managed to get it wrong. (No
reflection on Keith, by the way - everyone makes mistakes.)
Which did he get wrong?
Well, only Keith knows that.
You overestimate me.
(Thanks for that.)