Sujet : Re: Which code style do you prefer the most?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 28. Feb 2025, 10:32:26
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vprvrb$3jq5b$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 27.02.2025 14:02, Ar Rakin wrote:
[...]
Well, in the GNU style, function definitions are still different than
other styles which I like:
int
main(int argc, char **argv)
{
printf ("Hello world\n");
return 0;
}
Plus, you can also see how there is a *space* before the open
parenthesis of function call expressions.
A space in a function call, but no space in the main() definition?
(In Awk, BTW, because of its primitive syntax, you may not place
spaces in user-defined function calls, but may use spacing in the
function definition. - But in "C" you may do as you prefer.)
Many people argue that this is not a good idea, but I like it.
Just avoid these "many people"! :-)
But was there any _convincing_ argument to not do that?
Janis