C Style (Was Re: == vs =)

Frank Adams franka at mmintl.UUCP
Tue Apr 19 09:13:38 AEST 1988


In article <126 at atpal.UUCP> tneff at atpal.UUCP (Tom Neff) writes:
>If you get into the habit of never writing if(variable),
>you don't tend to have =/== accidents, in my experience.

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.
-- 

Frank Adams                           ihnp4!philabs!pwa-b!mmintl!franka
Ashton-Tate          52 Oakland Ave North         E. Hartford, CT 06108



More information about the Comp.lang.c mailing list