Re: Indention - why spaces?

Emiliano Gabrielli (emiliano.gabrielli@roma2.infn.it)
Mon, 30 Dec 2002 19:53:22 +0100 (CET)


<quote who="Dave Jones">
> On Mon, Dec 30, 2002 at 12:49:33PM +0000, John Bradford wrote:
> > > Well, I disagree: http://www.wiggy.net/rants/tabsvsspaces.xhtml
> > In my opinion, indentation in any form is irritating.
>
> The devfs source code is --> that way.
>

IMHO and in my personal projects I use the following indenting rules:

1) use TABs for _indentation_
2) use SPACEs for aligning

here is an exaple:

<tab><tab>if (cond) {
<tab><tab><tab>dosometing;
<tab><tab><tab>printf("This is foo: '%s', and this bar: '%d'",
<tab><tab><tab> foo, bar);

where tabs are explicitated, while spaces not.

I think this way combines both tab and spaces advantages, allowing each coder
to have its own indentation width, but NEVER destroing the aspect of the code.

This is only my opinion :-P

-- 
Emiliano 'AlberT' Gabrielli

dip. di Fisica 2° Universitā di Roma "Tor Vergata"

- 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/