Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.c Subject: Re: Against bool Date: Fri, 31 May 2024 03:22:48 -0000 (UTC) Organization: A noiseless patient Spider Lines: 10 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 31 May 2024 05:22:48 +0200 (CEST) Injection-Info: dont-email.me; posting-host="de4f422233c7b91f245976b63641f3d4"; logging-data="2185918"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4RUtwS/SS3/rHR9pZHBLp" User-Agent: Pan/0.158 (Avdiivka; ) Cancel-Lock: sha1:HM68J2b/SvnZE13wpMEvqRsjuNo= Bytes: 1314 On Thu, 30 May 2024 17:16:40 +0100, Malcolm McLean wrote: > And so we want to abolish bool and replace it with a bool enum. bool is_array(XMLNODE * node, bool useattributes); bool is_object(XMLNODE * node, bool useattributes); bool is_field(XMLNODE * node, bool useattributes); Seems to me, the use of “bool” helps make pretty clear what those arguments are for. What’s wrong with that?