Path: csiph.com!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: iso646.h Date: Mon, 22 Jan 2024 14:56:53 -0800 Organization: None to speak of Lines: 27 Message-ID: <87le8h9du2.fsf@nosuchdomain.example.com> References: <8FwrN.323724$p%Mb.66745@fx15.iad> <87plxt9i72.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: dont-email.me; posting-host="9cd31264156fc70cf12828e27041ba36"; logging-data="987658"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UgOUK7KZw6vtinwvJtf6g" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:ry/O4NELXqFuo2WzPDX4aIjw0TA= sha1:ePQIXyTUruPwkSnt4VxNqOOqyQU= Xref: csiph.com comp.lang.c:380653 Lawrence D'Oliveiro writes: > On Mon, 22 Jan 2024 13:22:41 -0800, Keith Thompson wrote: >> As for "and" being more readable than "&&", that's not necessarily the >> case for people who are accustomed to reading C code. > > You mean, “old-style C code”. No, I mean C code. > I imagine the introduction of ANSI-style argument declarations, as opposed > to the old K&R style, was a bit of a jar, too. But we got over it. As far as I can tell, the macros defined in have never caught on significantly. Code using the "and" and "or" macros isn't new-style; it's just (likely to be seen as) peculiar. I don't think I'd have any trouble reading code that uses the macros -- but the fact that I've never had a chance to find out is telling. If you find them more readable, that's fine, but I think that most C programmers with any reasonable amount of experience are more likely to find them slightly jarring. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Medtronic void Void(void) { Void(); } /* The recursive call of the void */