Article View: comp.std.c++
Article #1605Re: Incrementing a bool
From: Fergus Henderson
Date: Tue, 01 Aug 1995 12:34
Date: Tue, 01 Aug 1995 12:34
23 lines
1621 bytes
1621 bytes
matt@godzilla.EECS.Berkeley.EDU (Matt Austern) writes: >halasz@caip.rutgers.edu writes: > >> This exactlie reflects my point, that there is no special plase >> in programming for a two-stated type. It seldom is thus needed, >> certainlie not enough for a new type & kieword. > >I tend to agree, actually: it would have been nice if C had had a >boolean type from the very beginning, but it doesn't take much effort >to get used to the idea that truth values are represented by integers. Sure it doesn't take long to get used to the idea of using 0 and 1, but the point is that programmers should express their intent in the source code. 0 and 1 are just as easy to write as true or false (even easier, since they are fewer keystrokes), but they can be significantly more difficult to read. -- Fergus Henderson | Designing grand concepts is fun; fjh@cs.mu.oz.au | finding nitty little bugs is just work. http://www.cs.mu.oz.au/~fjh | -- Brooks, in "The Mythical Man-Month". PGP key fingerprint: 00 D7 A2 27 65 09 B6 AC 8B 3E 0F 01 E7 5D C4 3F
Technical Details
Message-ID:
<9521322.13045@mulga.cs.mu.OZ.AU>Path:
arc1-ca.pugleaf.net!munta.cs.mu.OZ.AU!fjhReferences:
<KANZE.95Jul19114530@slsvhdt.lts.sel.alcatel.de> <3v2rs8$hdo@deneb.tm.informatik.uni-frankfurt.de> <3v73r0$muv@caip.rutgers.edu> <MATT.95Jul26220946@godzilla.EECS.Berkeley.EDU>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++ Path: arc1-ca.pugleaf.net!munta.cs.mu.OZ.AU!fjh From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson) Subject: Re: Incrementing a bool Message-ID: <9521322.13045@mulga.cs.mu.OZ.AU> Sender: news@cs.mu.OZ.AU (CS-Usenet) Organization: Computer Science, University of Melbourne, Australia References: <KANZE.95Jul19114530@slsvhdt.lts.sel.alcatel.de> <3v2rs8$hdo@deneb.tm.informatik.uni-frankfurt.de> <3v73r0$muv@caip.rutgers.edu> <MATT.95Jul26220946@godzilla.EECS.Berkeley.EDU> Date: Tue, 1 Aug 1995 12:34:47 GMT