C Style (Was Re: == vs =)
Tom Neff
tneff at atpal.UUCP
Fri Apr 22 02:47:47 AEST 1988
In article <2823 at mmintl.UUCP> franka at mmintl.UUCP (Frank Adams) writes:
>I wouldn't say "never write if(variable)"; rather "only write if(variable)
>if variable is Boolean". In my opinion, things like if(variable==TRUE) are
>abominations.
I agree completely, Frank, and thanks for the correction. I meant to say
"non-boolean variable" (or at least I realize that now :-)). Of course, now
we could get into the etiquette of if(boolean-assignment-expression)...
--
Tom Neff UUCP: ...uunet!pwcmrd!skipnyc!atpal!tneff
"None of your toys CIS: 76556,2536 MCI: TNEFF
will function..." GEnie: TOMNEFF BIX: are you kidding?
More information about the Comp.lang.c
mailing list