The D Style and tab sizes

Stewart Gordon smjg_1998 at yahoo.com
Tue Sep 12 02:23:14 PDT 2006


Chris Miller wrote:
<snip>
> <tab> foo(); <spaces> // comment
> <tab>     <spaces>    // comment
> 
> match up tabs for indentation, use spaces for further alignment.

Agreed.

Actually, I do indent by spaces in one respect: when breaking a long 
statement across two or more lines, subsequent lines are generally 
indented by two spaces in my style.  For the head of an if, for, while, 
etc., this two spaces becomes a tab followed by two spaces (thereby 
never on the same level as the body).

This is, AISI, perfectly harmless because there are, in general, no 
sublevels of such a thing.

Stewart.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:-@ C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS- 
PE- Y? PGP- t- 5? X? R b DI? D G e++++ h-- r-- !y
------END GEEK CODE BLOCK------

My e-mail is valid but not my primary mailbox.  Please keep replies on 
the 'group where everyone may benefit.



More information about the Digitalmars-d mailing list