🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1309

Why doesn't C have a boolean type?

#1309
From: Paul D. Crowley
Date: Sun, 27 May 1990 14:16
9 lines
787 bytes
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@uk.ac.ed.castle
/\__/ "Trust me, I know what I'm doing" - Sledge Hammer
Technical Details
Message-ID: <4253@castle.ed.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!ukc!edcastle!aipdc
References: <12986@smoke.BRL.MIL> <5907@buengc.BU.EDU> <4232@castle.ed.ac.uk> <13003@smoke.BRL.MIL>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!ukc!edcastle!aipdc
From: aipdc@castle.ed.ac.uk (Paul D. Crowley)
Newsgroups: comp.std.c
Subject: Why doesn't C have a boolean type?
Message-ID: <4253@castle.ed.ac.uk>
Date: 27 May 90 14:16:23 GMT
References: <12986@smoke.BRL.MIL> <5907@buengc.BU.EDU> <4232@castle.ed.ac.uk> <13003@smoke.BRL.MIL>
Reply-To: aipdc@castle.ed.ac.uk (Paul D. Crowley)
Organization: Edinburgh University Computing Service
Lines: 9