| Deutsch English Français Italiano |
|
<86cykp5ql8.fsf@linuxsc.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch <tr.17687@z991.linuxsc.com> 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: <PaWdnZ3R-9zI6nP7nZ2dnZfqn_GdnZ2d@brightview.co.uk> <vcm16e$1hm2u$1@dont-email.me> <vcn6m8$1n1vu$1@dont-email.me> <87frpsr7tf.fsf@nosuchdomain.example.com> <vco1ig$20c3r$1@dont-email.me> 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 <andreytarasevich@hotmail.com> 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.