Article View: comp.std.c++
Article #2840bool (was Re: stop adding keywords to C++)
From: Matt Austern
Date: Mon, 04 Dec 1995 22:16
Date: Mon, 04 Dec 1995 22:16
29 lines
2405 bytes
2405 bytes
In article <Pine.SOL.3.91.951203010216.13007A-100000@barney> mzhou01 <mzhou01@barney.poly.edu> writes: > I spoke to my university friends about this addendum and they feel the > say way as I do. Why do we need in boolean type? If it was really > necessary Dennis Ritchie would have put it in C in the place. He didn't > put it in because boolean can be easily create using the language itself, > ie: the #define or emum, and Stroustrup didn't added in his second editon. It's true that C++ users can define a boolean type themselves; that's not necessarily an argument against putting it in the language standard, though. C++ users can also define string classes themselves, after all, and I hope none of us thinks that the standard library would be better off without strings. The argument for bool is a very pragmatic one: users and library vendors were defining boolean types themselves, and they were all doing it slightly differently. When a feature is generally perceived to be so useful that it's universally implemented, and when different versions of the feature make interoperability a problem, then it ought to be standardized. This sort of thing is the whole reason we need a standard in the first place. -- Matt Austern He showed his lower teeth. "We matt@physics.berkeley.edu all have flaws," he said, "and http://dogbert.lbl.gov/~matt mine is being wicked." [ 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:
<MATT.95Dec4150907@cyclops5.berkeley.edu>Path:
arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamageReferences:
<Pine.SOL.3.91.951203010216.13007A-100000@barney>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamage From: matt@cyclops5.berkeley.edu (Matt Austern) Newsgroups: comp.std.c++ Subject: bool (was Re: stop adding keywords to C++) Date: 4 Dec 1995 22:16:50 GMT Organization: University of California at Berkeley (computational neuroscience) Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <MATT.95Dec4150907@cyclops5.berkeley.edu> References: <Pine.SOL.3.91.951203010216.13007A-100000@barney> Reply-To: matt@physics.berkeley.edu NNTP-Posting-Host: taumet.eng.sun.com Content-Type: text X-Nntp-Posting-Host: cyclops5.berkeley.edu In-Reply-To: mzhou01's message of 4 Dec 1995 16:29:35 GMT Content-Length: 1447 X-Lines: 25 Originator: clamage@taumet