Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2002:
[Freeciv-Dev] Re: Coding Style Guidelines
Home

[Freeciv-Dev] Re: Coding Style Guidelines

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Coding Style Guidelines
From: Reinier Post <rp@xxxxxxxxxx>
Date: Sat, 12 Jan 2002 11:52:24 +0100

On Fri, Jan 11, 2002 at 09:29:17PM -0600, Chris Richards wrote:
> Sub-subject: spacing and -ts0
> 
> Since some people aren't strict K&R (re: style guide discussion), is
> it poo-poo'd to use spacing as follows:
> 
> if (foo) {
>   need_to_call (maximize (foo));
> }
> 
> Essentially I add a space before the '('.  K&R doesn't mind the space
> after the 'if' but it changes it for the function calls.

The K&R style distinguishes flow control keywords (if, while, for)
from function calls.  It's also less typing, but that shouldn't be
a concern today.  And it is most popular.

-- 
Reinier


[Prev in Thread] Current Thread [Next in Thread]