[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: kdelibs coding style
From:       Olivier Goffart <ogoffart () kde ! org>
Date:       2006-08-23 11:11:26
Message-ID: 200608231311.31079.ogoffart () kde ! org
[Download RAW message or body]


Le mercredi 23 août 2006 12:38, Frerich Raabe a écrit :
> And I suppose simply saying "You're free to indent the statements in a case
> branch of a switch if you want." is not acceptable by the coding style
> police? I don't want to start a flame war but I never quite understood why
> you have to define all such things to 100%, as long as common sense stuff
> like "Don't write the body of an if statement on the same line" or
> something like that is agreed on.
>
> I think if you have developers on a project who are more 'productive'
> because it's easier for them to understand code which has tiny cosmetic
> things like indented case statements, then you have bigger problems than an
> inconsistent indentation style. :-}

+1

I think that the space vs. tab,  and the number of space per indentation is an 
important thing.  Because code becomes unreadable if indentation is not 
correct.

Anyway, the number of space around the '=' sign or parenthesis doesn't really 
mater.

Personally, I'd just like a indenting policy,  not a strong coding style 
policy.

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic