Why doesn't C have a boolean type?

Paul D. Crowley aipdc at castle.ed.ac.uk
Mon May 28 00:16:23 AEST 1990


Yeah, I agree.  Some might think me mad, but my code includes lines like

if(c!='\0')

Makes it more obvious what you're trying to do.  And I _trust_ that any
half-decent optimiser will produce code that is no less efficient.
-- 
\/ o\ Paul Crowley aipdc at uk.ac.ed.castle
/\__/ "Trust me, I know what I'm doing" - Sledge Hammer



More information about the Comp.std.c mailing list