develooper Front page | perl.perl6.internals | Postings from May 2001

Re: PDD 2nd go: Conventions and Guidelines for Perl Source Code

Thread Previous
From:
Abhijit Menon-Sen
Date:
May 29, 2001 12:54
Subject:
Re: PDD 2nd go: Conventions and Guidelines for Perl Source Code
Message ID:
20010530012331.A16525@lustre.linux.in
On 2001-05-29 18:25:45, davem@fdgroup.co.uk wrote:
> 
> The following I<must> apply:
> 
> =over 4
> 
> =item *
> 
> 8-wide tabs
> 
> =item *
> 
> 4-wide indents for code, 2-wide indents for nested CPP #directives

Please don't *require* the use of literal TABs (8 characters wide) to
achieve 4-character indentation. In practice, this leads to ugly diffs
and a completely unpredictable mixture of ^Is and spaces in the source.

Either use 4 spaces everywhere, or use TABs for 8-character indentation
(as the Linux kernel does). Please, don't mix the two.

> Developer files
> 
> For each source file (eg a F<foo.c> F<foo.h> pair), there should be an
> accompanying developer file called F<foo.dev>.

(Perhaps these .dev files should be /doc/devel/*.txt instead?)

- ams

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About