Sujet : Re: Which code style do you prefer the most?
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.cDate : 26. Feb 2025, 18:59:08
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250226095615.829@kylheku.com>
References : 1 2 3 4
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2025-02-26, Ar Rakin <
rakinar2@onesoftnet.eu.org> wrote:
Sorry, I should have showed this difference in my original post. I like
the GNU style except the weird indentation before the braces of control
statements. Not sure why they choose to indent that way.
>
The GNU style without indent before braces looks nice to me.
Without the weird brace indent, it has nothing to do with GNU any more; it's
just two-space indentation, where opening braces are on their own line instead
of being "cuddled" into the previous line, which is very common:
if (flag)
{
switch (state)
{
case 42:
{
state = 73;
break;
}
}
}
else
{
statement;
}
-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca