[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47C48FD8.5040205@student.ltu.se>
Date: Tue, 26 Feb 2008 23:16:56 +0100
From: Richard Knutsson <ricknu-0@...dent.ltu.se>
To: Randy Dunlap <randy.dunlap@...cle.com>
CC: khc@...waw.pl, bhalevy.lists@...il.com, jengelh@...putergmbh.de,
linux-kernel@...r.kernel.org
Subject: Re: [RFC] CodeStyle: Use spaces when aligning/decorating
Randy Dunlap wrote:
> On Tue, 26 Feb 2008 22:47:10 +0100 ricknu-0@...dent.ltu.se wrote:
>
>
>> Relaxing the 'tab = 8 character', which leads to 'don't tab the alignment'.
>> By only using tabs for indentation, we solidify it as a 'logical indentation'.
>>
>> Signed-off-by: Richard Knutsson <ricknu-0@...dent.ltu.se>
>> ---
>> To'ed the people who showed interest in the (apparently not so new)
>> question/suggestion of not using tabs when aligning.
>> If this looks ok, then checkpatch.pl is next...
>>
>>
>> diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
>> index 6caa146..1b3f448 100644
>> --- a/Documentation/CodingStyle
>> +++ b/Documentation/CodingStyle
>> @@ -15,10 +15,8 @@ Anyway, here goes:
>>
>> Chapter 1: Indentation
>>
>> -Tabs are 8 characters, and thus indentations are also 8 characters.
>> -There are heretic movements that try to make indentations 4 (or even 2!)
>> -characters deep, and that is akin to trying to define the value of PI to
>> -be 3.
>> +This project is recommended to be viewed with a tab-width of 8 characters
>> +(and other code).
>>
>
> FWIW I prefer the {deleted} language. // PI = 3;
>
Well, actually I like it too. But I think it should be up to the
programmer which setting to use + it seems some people have really taken
this to heart, going from 'tab => 8 characters wide' to '8 spaces =>
tab', obscuring tab's position as a 'logical indention'.
Richard Knutsson
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists