Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: To C or not to C++ Date: Thu, 25 Aug 2022 10:06:28 -0700 Organization: None to speak of Lines: 21 Message-ID: <87mtbsw8vf.fsf@nosuchdomain.example.com> References: <2868500762@darkrealms.ca> <87lerte0qb.fsf@nosuchdomain.example.com> <87sflmszgi.fsf@bsb.me.uk> <87wnaxsofv.fsf@bsb.me.uk> <87r115sn88.fsf@bsb.me.uk> <878rndy1wg.fsf@nosuchdomain.example.com> <87wnaxqsfy.fsf@bsb.me.uk> <87a67sy5u2.fsf@bsb.me.uk> <392fc8fe-b516-434c-8962-c11e2154f4c6n@googlegroups.com> <87y1vcwo4q.fsf@bsb.me.uk> <6aeee22b-9030-481e-86cb-4a47c6746f0bn@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="a042aa527780c44e7e71460682553b9b"; logging-data="3884487"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mrv3aVu5U9miHnUCVjOuk" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:GEyevgnsLokMYY+rcYHXsk9AFQg= sha1:f2X4WuUvXkl6/413eaJFAsyvWqw= Xref: csiph.com comp.lang.c++:86065 Malcolm McLean writes: [...] > Computer science people would tend to think that it's important to have > a boolean type, because a lot of logic works on values which are inherently > true or false. Practical programmers would tend to say that it's not, because > most hardware won't support it. You will of course find exceptions. Many practical programmers would tend to say it's important to have a boolean type because it makes it easier to write clear code. (Some probably prefer to use zero and non-zero rather than explicit bool, false, and true.) Why would a "practical programmer" care whether there's direct hardware support for bool? If the compiler handles it correctly, it just works. In a very real sense, all hardware supports booleans, with more or less work required by the compiler. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */