Sujet : Re: Against bool
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 31. May 2024, 05:22:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v3bfq8$22mlu$3@dont-email.me>
References : 1
User-Agent : Pan/0.158 (Avdiivka; )
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?