Liste des Groupes | Revenir à cl c |
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
On 26.02.2025 12:53, Ar Rakin wrote:
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:>
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.
That looks like a nightmare for the code reviewers.
I cannot tell where that comes from; the person who uses it is an
experienced Perl programmer - may that be some convention in that
specific language context? (I can't tell.)
It's called Whitesmith (Whitesmiths?) style. It is (or was?)
used in PJ Plauger's company, who IIANM among other things wrote
one of the first C compilers done outside of Bell Labs.
For those who don't recognize the name, PJ Plauger was involved
in C standardization efforts from an early date, and was a member
of WG14 for more than 20 years even after the first C standard
was published.
Les messages affichés proviennent d'usenet.