kdelibs coding style

Olivier Goffart ogoffart at kde.org
Wed Aug 23 12:11:26 BST 2006


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060823/cb508e84/attachment.sig>


More information about the kde-core-devel mailing list