Article View: comp.std.c++
Article #1769Re: true/false literal std question
From: mfinney
Date: Mon, 21 Aug 1995 00:16
Date: Mon, 21 Aug 1995 00:16
23 lines
1674 bytes
1674 bytes
In <MATT.95Aug20111450@Austern>, herbs@interlog.com (Herb Sutter) writes: > Since we're gaining none of the benefits of the literals, why bother >introducing them (with yet another meaning)? Why not just use 1 and 0 with no >renaming at all? This is where, I think, we are fundamentally disagreeing. There is a benefit, and (to me) a major one. That is readability. I consider using '1' and '0' for logical conditions to be "bad form", and considering the number of people that define TRUE/FALSE in some variant for the preprocessor I am not alone in that feeling. As long it is a literal which can be converted to an integral value, I just don't see the problem in allowing the preprocessor to recognize the literal. If you want to use '1' and '0' there is nothing stopping you. But I don't want to do that. And the inability of the preprocessor to recognize the 'true' / 'false' literals DOES stop me from writing (what I consider to be) readable code. Michael Lee Finney --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<4188cm$ihs@mujibur.inmind.com>Path:
arc1-ca.pugleaf.net!in1.uu.net!bounce-backReferences:
<MATT.95Aug20111450@Austern>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back Date: 21 Aug 95 00:16:38 GMT Approved: fjh@cs.mu.oz.au Return-Path: <daemon@ncar.UCAR.EDU> From: mfinney@inmind.com Newsgroups: comp.std.c++ Subject: Re: true/false literal std question X-Original-Date: 20 Aug 1995 21:10:46 GMT Organization: In Mind, Inc. Message-ID: <4188cm$ihs@mujibur.inmind.com> References: <MATT.95Aug20111450@Austern> Reply-To: mfinney@inmind.com X-Newsreader: IBM NewsReader/2 v1.2