login
Header Space

 
 

Re: [RFC] CodeStyle: Use spaces when aligning/decorating

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Richard Knutsson <ricknu-0@...>, Randy Dunlap <randy.dunlap@...>
Cc: <khc@...>, <bhalevy.lists@...>, <jengelh@...>, <linux-kernel@...>
Date: Tuesday, February 26, 2008 - 8:14 pm

On Feb. 26, 2008, 14:16 -0800, Richard Knutsson <ricknu-0@student.ltu.se> wrote:

How about this:

-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.
+Tabs are used for logical indentation, e.g., code is indented with
+a number of tabs equal to its nesting level.  From there on,
+use space characters for decorative indentation.  This method
+is agnostic to the editor's tab-expansion settings.
+That said, expanding tabs to a small number of spaces (4, or even 2!) encourages
+excessive nesting and resulting over-complexity; that is akin to trying to define
+the value of PI to be 3.  Therefore, tabs are always assumed to be 8 characters-wide.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] CodingStyle: multiple updates, Jan Engelhardt, (Tue Feb 26, 6:59 pm)
Re: [PATCH] CodingStyle: multiple updates, Richard Knutsson, (Wed Feb 27, 5:41 pm)
Re: [PATCH] CodingStyle: multiple updates, Stefan Richter, (Tue Feb 26, 8:39 pm)
Re: [PATCH] CodingStyle: multiple updates, Guennadi Liakhovetski, (Tue Feb 26, 7:40 pm)
Re: [PATCH] CodingStyle: multiple updates, Bernd Petrovitsch, (Wed Feb 27, 5:27 am)
Re: [PATCH] CodingStyle: multiple updates, SL Baur, (Wed Feb 27, 5:46 pm)
Re: [PATCH] CodingStyle: multiple updates, Guennadi Liakhovetski, (Wed Feb 27, 6:02 am)
Re: [PATCH] CodingStyle: multiple updates, Bernd Petrovitsch, (Wed Feb 27, 6:17 am)
Re: [PATCH] CodingStyle: multiple updates, Krzysztof Halasa, (Tue Feb 26, 7:51 pm)
Re: [PATCH] CodingStyle: multiple updates, SL Baur, (Tue Feb 26, 8:57 pm)
Re: [PATCH] CodingStyle: multiple updates, Randy Dunlap, (Wed Feb 27, 1:34 am)
Re: [PATCH] CodingStyle: multiple updates, Alexey Dobriyan, (Thu Feb 28, 5:20 pm)
Re: [PATCH] CodingStyle: multiple updates, Richard Knutsson, (Wed Feb 27, 6:02 pm)
Re: [PATCH] CodingStyle: multiple updates, SL Baur, (Wed Feb 27, 8:11 pm)
Re: [PATCH] CodingStyle: multiple updates, Richard Knutsson, (Thu Feb 28, 4:09 pm)
Re: [PATCH] CodingStyle: multiple updates, Krzysztof Halasa, (Fri Feb 29, 6:34 pm)
Re: [PATCH] CodingStyle: multiple updates, Benny Halevy, (Mon Mar 3, 12:17 pm)
Re: [PATCH] CodingStyle: multiple updates, Krzysztof Halasa, (Mon Mar 3, 5:08 pm)
Re: [PATCH] CodingStyle: multiple updates, Benny Halevy, (Tue Mar 4, 6:04 am)
Re: [PATCH] CodingStyle: multiple updates, Jan Engelhardt, (Wed Feb 27, 8:18 pm)
Re: [PATCH] CodingStyle: multiple updates, Krzysztof Halasa, (Wed Feb 27, 7:53 pm)
Re: [PATCH] CodingStyle: multiple updates, SL Baur, (Wed Feb 27, 5:33 pm)
Re: [PATCH] CodingStyle: multiple updates, Jan Engelhardt, (Tue Feb 26, 8:02 pm)
Re: [PATCH] CodingStyle: multiple updates, Stefan Richter, (Tue Feb 26, 8:42 pm)
Re: [PATCH] CodingStyle: multiple updates, Guennadi Liakhovetski, (Tue Feb 26, 8:16 pm)
Re: [RFC] CodeStyle: Use spaces when aligning/decorating, Richard Knutsson, (Tue Feb 26, 6:16 pm)
Re: [RFC] CodeStyle: Use spaces when aligning/decorating, Richard Knutsson, (Wed Feb 27, 5:47 pm)
Re: [RFC] CodeStyle: Use spaces when aligning/decorating, Benny Halevy, (Tue Feb 26, 8:14 pm)
Re: [RFC] CodeStyle: Use spaces when aligning/decorating, Richard Knutsson, (Wed Feb 27, 5:02 pm)
speck-geostationary