Revision f6a67901e79d8d35e6bf30f0766b2417740090b7
Richard Laager
rlaager at wiktel.com
Tue Aug 28 13:38:04 EDT 2007
On Tue, 2007-08-28 at 10:06 -0400, Ethan Blanton wrote:
> For the record, _tabs are 8 spaces_.
> (Note that I myself also prefer 4-space indentation -- but that is a
> completely separate issue.)
If you use tabs for indentation and spaces for lining things up, this is
never* a problem, regardless of the tab width.
Here's an example:
________ = a single tab
void foo()
{
________if (my_variable == your_variable ||
________ your_variable == 1) {
________________do_stuff_here();
________}
}
Now, if you cut your tab size to 4 spaces, the second line of the if
still lines up:
void foo()
{
____if (my_variable == your_variable ||
____ your_variable == 1) {
________do_stuff_here();
____}
}
I also think this is a wonderful example of why I like braces on their
own lines, but that's another flame war. ;)
Richard
* Yes, I'm ignoring proportional width fonts, but nobody should be
expecting things to line up in that case.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://pidgin.im/pipermail/devel/attachments/20070828/97a9e807/attachment.sig>
More information about the Devel
mailing list