Consensus on the kdelibs coding style

Michael Pyne mpyne at purinchu.net
Sat Jul 5 20:10:01 BST 2008


On Saturday 05 July 2008, David Johnson wrote:
> On Saturday 05 July 2008 07:13:33 am Thiago Macieira wrote:
> > The major point is actually deciding on the "4 spaces, NO TABS"
> > (capitalisation mine, but should be there). Tabs are inherently evil and
> > should be banned altogether, to the point of warranting a wide-reaching
> > tab-replacement commit (svn can now ignore whitespace changes in
> > annotation, git has been able to do it for years).
>
> Of all the style war battles, this is the only one I really care about.
> Tabs are 8 spaces wide by default, yet certain editors insist on one tab
> per level of indent. Almost as evil as tabs is the mixed mode indentation
> that some other editors use.


This (mixed-mode) is really almost super-evil.  vim seems to do this by 
default and it's so annoying.  So even if you fix it on your editor the next 
guy to go "vi foo.cpp" has a very good chance of screwing up the spacing if 
they haven't fixed their vim either.


Regards,
 - Michael Pyne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080705/34768e92/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080705/34768e92/attachment.sig>


More information about the kde-core-devel mailing list