/
STYLE
23 lines (19 loc) · 875 Bytes
/
STYLE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<http://thread.gmane.org/gmane.os.apple.fink.devel/6012>
From: Max Horn <max <at> quendi.de>
Subject: Re: Basic style guide (was Re: fink/perlmod/Fink Bootstrap.pm,1.40,1.41 Command.pm,1.3,1.4 Config.pm,1.25,1.26 Mirror.pm,1.10,1.11)
Newsgroups: gmane.os.apple.fink.devel
Date: Sun, 16 Nov 2003 14:05:12 +0100
[...] Here's them, roughly:
* tabs are 4 wide
* use tabs for indention of statements (so with the above, you get "4
character indention")
* in particular, do *not* use emacs 2/8 indention mode
* don't use tabs for indention/alignment *inside* statements.
* there is no particular reason to stick to a 80 column width, but if
it makes you feel better, I don't mind it either, as long as it doesn't
cause extremely unnatural code formatting
* our bracing style is:
while (foo) {
...
}
* use a whitespace after keywords: "if (foo)" and not "if(foo)"