Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <87o746qbbg.fsf@nosuchdomain.example.com>
Deutsch   English   Français   Italiano  
<87o746qbbg.fsf@nosuchdomain.example.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: how to make a macro work as a single line if stmt without braces
Date: Sun, 29 Sep 2024 16:39:31 -0700
Organization: None to speak of
Lines: 47
Message-ID: <87o746qbbg.fsf@nosuchdomain.example.com>
References: <PaWdnZ3R-9zI6nP7nZ2dnZfqn_GdnZ2d@brightview.co.uk>
	<vcm16e$1hm2u$1@dont-email.me> <vcn6m8$1n1vu$1@dont-email.me>
	<86frpk3s1u.fsf@linuxsc.com> <vdajg3$1k3jr$1@dont-email.me>
	<86r0932eqj.fsf@linuxsc.com> <vdboub$1pcnk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Mon, 30 Sep 2024 01:39:32 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2d0afc2e72115f29bbb1b2f805b0af16";
	logging-data="2022116"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+jmn61oWdBFCaNPzV8rzyK"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:8pZVWXkGUlC4evdjM9vCl6PLANg=
	sha1:M80vSO849esfubvyAEumOG5hlOw=

Andrey Tarasevich <andreytarasevich@hotmail.com> writes:
[...]
> This is unreadable and unacceptable
>
>   if (condition) {
>     whatever1;    /* <-- Bad! No vertical separation! */
>     whatever2;
>   }
>
>   for (abc; def; ghi) {
>     whatever1;    /* <-- Bad! No vertical separation! */
>     whatever2;
>   }
>
> This is _immensely_ more readable
>
>   if (condition)
>   {               /* <-- Good! Vertical space */
>     whatever1;
>     whatever2;
>   }
>
>   for (abc; def; fgh)
>   {               /* <-- Good! Vertical space */
>     whatever1;
>     whatever2;
>   }
[...]

Andrey, I hope you're aware that you're stating your own personal
preferences as if they were incontrovertible fact.

Readability is a combination of the text being read and the person
reading it.  I accept without question that *you* find K&R-style
brace placement "unreadable and unacceptable".  A lot of experienced
C programmers, myself included, either prefer the K&R style or
find both styles more or less equally readable.  And many prefer
vertically aligned braces but can deal with K&R-style braces.

I have some quirks of my own, things that most people accept but
I hate, so I get where you're coming from.  But I suggest it would
be good for you to be aware that your preferences are something of
an outlier, and that arguing about it isn't going to be productive.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */