Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: how to make a macro work as a single line if stmt without braces
Date: Fri, 27 Sep 2024 03:38:27 -0700
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <86cykp5ql8.fsf@linuxsc.com>
References: <87frpsr7tf.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Fri, 27 Sep 2024 12:38:28 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="abc45fc1b62a735d371ae748216349f9";
logging-data="746897"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3Ifg0OgbQb/jq5CIFTEfb8/HUxgqFKQw="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:X1sc/XqkfJdE9qd37YRAZLjWYzc=
sha1:rp/ExNByHdOnl/uqwXKTh9PN3pw=
Bytes: 2041
Andrey Tarasevich writes:
> On 09/21/24 2:54 PM, Keith Thompson wrote:
[...]
>> What you call "Egyptian" braces is the style used by the creators
>> of the language
>
> Firstly, this is style. Being a "creator of the language" does not
> make one an authority on code formatting style.
>
> Secondly, most people pick up "the style used by the creators of
> the language" from the code samples used in the 2nd edition of K&R
> book. And, as we know, "the creators of the language" went a
> little lazy here. The samples were considered of "low importance"
> and fell victim to the tightening publishing schedules in front of
> the looming "threat" of the upcoming ANSI standard. The code
> samples were never properly updated to match the style and spirit
> of modern C.
Your reasoning is rife with errors of logic and facts not in
evidence.