Sujet : Re: Which code style do you prefer the most?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 25. Feb 2025, 23:10:52
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vplf5d$26v09$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 25.02.2025 20:33, Scott Lurndal wrote:
Kaz Kylheku <643-408-1753@kylheku.com> writes:
>
OP didn't properly characterize GNU style.
>
GNU style is actually something like this:
[...]
Four space indentation, but braces half-indent by two spaces.
Which is one of the goofier styles I've seen. Although I don't recall
ever seeing it actually done that way, even in gnu code.
Re "goofy style"; I've seen someone preferring
while (q(a,b))
{
a=b;
f(x);
if (c>d)
{
g(y);
}
}
To each his own.
Janis
[...]