lkml.org 
[lkml]   [2007]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Coding Style: indenting with tabs vs. spaces
    Bonjour Xavier :)

* Xavier Bestel <xavier.bestel@free.fr> dixit:
> Le samedi 10 novembre 2007 à 13:04 +0100, DervishD a écrit :
> > * Benny Halevy <bhalevy@panasas.com> dixit:
> > > I would like to hear peoples opinion about the indentation convention
> > > described below that I personally found the most practical with
> > > several different editors.
> >
> > While I respect you opinion about tabs, I find tab indentation the most
> > evil thing ever invented. Even if done right (that is, not indenting
> > using a mixture of spaces and tabs), the only advantage is that you save
> > a few bytes.
>
> Who cares ?

About the space saving? Not me, of course. It's just that I didn't see
any other advantage.

> The only advantage is that people can make tabs as big (or as small)
> as they wish. Tabs become "logical indentation". So one's indentation
> isn't forced on anotherone's editor.

The only way of having a sane indentation using tabs is to make sure
that ALL indentation are tabs, not a mix of tabs and spaces (spaces, if
any, should be at the end of indentation for aesthetical purposes, but
should be removed without the logical indentation being lost). A good
editor can ensure that all indentation are tabs and not a mix, but a
good editor can adapt indentation to your likings when loading the file
and save the file translating your favourite indentation back to spaces
or whatever.

If everybody used tabs correctly, indenting using tabs would be great,
but IMHO indenting with spaces is much better.

Raúl Núñez de Arenas Coronado

--
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!
We are waiting for 13 Feb 2009 23:31:30 +0000 ...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-11-10 17:53    [W:0.064 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site