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 <vq7vg3$21gol$3@dont-email.me>
Deutsch   English   Français   Italiano  
<vq7vg3$21gol$3@dont-email.me>

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

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Richard Heathfield <rjh@cpax.org.uk>
Newsgroups: comp.lang.c
Subject: Re: Which code style do you prefer the most?
Date: Tue, 4 Mar 2025 22:40:03 +0000
Organization: Fix this later
Lines: 48
Message-ID: <vq7vg3$21gol$3@dont-email.me>
References: <vpkmq0$21php$1@dont-email.me>
 <20250304175602.c9fe683d678d3a2ed101a4ac@g{oogle}mail.com>
 <vq75k8$1t6ut$2@dont-email.me> <vq785i$1u7v7$1@dont-email.me>
 <20250304101022.154@kylheku.com> <vq7shq$226p3$1@dont-email.me>
 <vq7u5u$21gol$2@dont-email.me> <20250304142114.131@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 04 Mar 2025 23:40:04 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f7081586a897c6da4d79231b7ed9c810";
	logging-data="2147093"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19S5y7nEiB9IuAQS0v/TE6EBGzOiQBtY2UaANzApC8q3g=="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:r4Z4hwlG+xMKeYy01AIulLBg6qk=
In-Reply-To: <20250304142114.131@kylheku.com>
Content-Language: en-GB
Bytes: 2500

On 04/03/2025 22:26, Kaz Kylheku wrote:
> On 2025-03-04, Richard Heathfield <rjh@cpax.org.uk> wrote:
>> On 04/03/2025 21:49, Richard Harnden wrote:
>>
>> <snip>
>>
>>>
>>> I like the brace on its own line.  It visually separates the
>>> condidition from the statement.
>>
>> Agreed.
>>
>>>
>>> How do people format long and complex conditions, given that
>>> you're trying not to a much over 80 columns?
>>
>> I like to break after a binary operator so that it is
>> syntactically obvious that the line must continue:
>>
>> if((a != b        &&
>>       c != d        &&
>>       e != f)       ||
>>      (g = h() * i() &&
>>      (j = k))
>> {
>>     foo();
>> }
>>
>> (You'll be glad to hear that that's not a direct quote!)
> 
>    (when (or (and (/= a b)
>                   (/= c d)
>                   (/= e f))
>              (and (= g (* (h)
>                           (i)))
>                   (= j k)))
>      (foo))

@  (or)
@    (output)
Take one down and pass it around...

-- 
Richard Heathfield
Email: rjh at cpax dot org dot uk
"Usenet is a strange place" - dmr 29 July 1999
Sig line 4 vacant - apply within