On Fri, 2002-11-01 at 06:28, Jani Averbach wrote:
> * wearing my asbestos suit...
>
> Why on the earth gnu-style has been chosen to default coding style?
There are no compelling objective arguments in favor of a particular
indentation style. It's maybe a little sad that people couldn't agree
on a single idiom for C programming, but here we are.
At the appropriate time in the project's infancy, most of the developers
preferred GNU style. Over time, we've decided we want project-wide
consistency on some aspects of style (indentation levels and brace
placement) and file-wide consistency on others (whether you put a space
after the function name, whether you declare multiple variables on the
same line). This is mostly arbitrary; although there are plenty of
wrong answers when it comes to regulating project style (Fibonacci
sequence indentation levels!), there are lots of acceptable answers.
My experience as a programmer is that I started out very opinionated, in
favor of K&R-style four-space indentation. When work forced me to
switch to a slightly modified GNU-style, I found that I quickly became
agnostic, and rarely wince at code which is internally consistent.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 1 16:45:14 2002