login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
27
Re: [RFC] CodeStyle: Use spaces when aligning/decorating
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Richard Knutsson
Subject:
Re: [RFC] CodeStyle: Use spaces when aligning/decorating
Date: Wednesday, February 27, 2008 - 2:02 pm
Benny Halevy wrote:
quoted text
> > 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. > >
Not sure about the PI-reference in that context, but the rest IMO looks good. --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC] CodeStyle: Use spaces when aligning/decorating
, ricknu-0
, (Tue Feb 26, 2:47 pm)
Re: [RFC] CodeStyle: Use spaces when aligning/decorating
, Randy Dunlap
, (Tue Feb 26, 2:54 pm)
Re: [RFC] CodeStyle: Use spaces when aligning/decorating
, Richard Knutsson
, (Tue Feb 26, 3:16 pm)
[PATCH] CodingStyle: multiple updates
, Jan Engelhardt
, (Tue Feb 26, 3:59 pm)
Re: [PATCH] CodingStyle: multiple updates
, Guennadi Liakhovetski
, (Tue Feb 26, 4:40 pm)
Re: [PATCH] CodingStyle: multiple updates
, Krzysztof Halasa
, (Tue Feb 26, 4:51 pm)
Re: [PATCH] CodingStyle: multiple updates
, Jan Engelhardt
, (Tue Feb 26, 5:02 pm)
Re: [RFC] CodeStyle: Use spaces when aligning/decorating
, Benny Halevy
, (Tue Feb 26, 5:14 pm)
Re: [PATCH] CodingStyle: multiple updates
, Guennadi Liakhovetski
, (Tue Feb 26, 5:16 pm)
Re: [PATCH] CodingStyle: multiple updates
, Stefan Richter
, (Tue Feb 26, 5:39 pm)
Re: [PATCH] CodingStyle: multiple updates
, Stefan Richter
, (Tue Feb 26, 5:42 pm)
Re: [PATCH] CodingStyle: multiple updates
, SL Baur
, (Tue Feb 26, 5:57 pm)
Re: [PATCH] CodingStyle: multiple updates
, Randy Dunlap
, (Tue Feb 26, 10:34 pm)
Re: [PATCH] CodingStyle: multiple updates
, Bernd Petrovitsch
, (Wed Feb 27, 2:27 am)
Re: [PATCH] CodingStyle: multiple updates
, Guennadi Liakhovetski
, (Wed Feb 27, 3:02 am)
Re: [PATCH] CodingStyle: multiple updates
, Bernd Petrovitsch
, (Wed Feb 27, 3:17 am)
Re: [RFC] CodeStyle: Use spaces when aligning/decorating
, Richard Knutsson
, (Wed Feb 27, 2:02 pm)
Re: [PATCH] CodingStyle: multiple updates
, SL Baur
, (Wed Feb 27, 2:33 pm)
Re: [RFC] CodeStyle: Use spaces when aligning/decorating
, Bob Copeland
, (Wed Feb 27, 2:33 pm)
Re: [PATCH] CodingStyle: multiple updates
, Richard Knutsson
, (Wed Feb 27, 2:41 pm)
Re: [PATCH] CodingStyle: multiple updates
, SL Baur
, (Wed Feb 27, 2:46 pm)
Re: [RFC] CodeStyle: Use spaces when aligning/decorating
, Richard Knutsson
, (Wed Feb 27, 2:47 pm)
Re: [PATCH] CodingStyle: multiple updates
, Richard Knutsson
, (Wed Feb 27, 3:02 pm)
Re: [PATCH] CodingStyle: multiple updates
, Krzysztof Halasa
, (Wed Feb 27, 4:53 pm)
Re: [PATCH] CodingStyle: multiple updates
, SL Baur
, (Wed Feb 27, 5:11 pm)
Re: [PATCH] CodingStyle: multiple updates
, Jan Engelhardt
, (Wed Feb 27, 5:18 pm)
Re: [PATCH] CodingStyle: multiple updates
, Richard Knutsson
, (Thu Feb 28, 1:09 pm)
Re: [PATCH] CodingStyle: multiple updates
, Alexey Dobriyan
, (Thu Feb 28, 2:20 pm)
Re: [PATCH] CodingStyle: multiple updates
, Krzysztof Halasa
, (Fri Feb 29, 3:34 pm)
Re: [PATCH] CodingStyle: multiple updates
, Benny Halevy
, (Mon Mar 3, 9:17 am)
Re: [PATCH] CodingStyle: multiple updates
, Krzysztof Halasa
, (Mon Mar 3, 2:08 pm)
Re: [PATCH] CodingStyle: multiple updates
, Benny Halevy
, (Tue Mar 4, 3:04 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Greg Kroah-Hartman
[PATCH 09/36] driver core: register_memory/unregister_memory clean ups and bugfix
Pierre Ossman
Re: sdio: enhance IO_RW_EXTENDED support
Sam Ravnborg
Re: [PATCH] kbuild: fix make V=1
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Johannes Schindelin
Re: error: cannot lock ref 'refs/remotes/origin/*'
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Jonathan Nieder
Re: [PATCH v2] git-send-email.perl: fix In-Reply-To for second and subsequent patc...
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Daniel Schaffrath
Re: tcp bw in 2.6
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
git-commits-head
:
Linux Kernel Mailing List
ipv6: fix an oops when force unload ipv6 module
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
KVM: VMX: Clear CR4.VMXE in hardware_disable
Linux Kernel Mailing List
imxfb: Fix margin settings
Linux Kernel Mailing List
USB: set correct configuration in probe of ti_usb_3410_5052
openbsd-misc
:
Stas Miasnikou
Re: Another question: device naming convention
Darrin Chandler
Re: That whole "Linux stealing our code" thing
Community First Financial
Teacher A+ Loan
Jan Stary
Re: audio recording levels
Andrej Elizarov
Re: Web Browsers
Colocation donated by:
Syndicate