Re: RFC: coding standards document

From: Date: Tue, 05 Dec 2000 17:29:32 +0000
Subject: Re: RFC: coding standards document
References: 1 2  Groups: php.pear 
Request: Send a blank email to php-pear+get-554@lists.php.net to get a copy of this message
Quoting Ulf Wendel <ulf.wendel@phpdoc.de>: > Is this a request for comment or a standard... It is a proposed standard. > > ------------- > > [1] Indenting > > ============= > > > Use an indent of 4 spaces, with no tabs. If you use Emacs to edit PEAR > > Tabs, size: 4 spaces as for the PHP C code. > > > ------------------------ > > [4] Function Definitions > > ======================== > > > > Function declaractions follow the "one true brace" convention: > > > function fooFunction($arg1, $arg2 = '') > > { > > function fooFunction($arg1, $arg2 = '') { Both of these could go either way, but I've had several people agree with #4 as written, and I think Stig weighed in in favor of spaces instead of tabs. -chuck -- Charles Hagenbuch, <chuck@horde.org> "If you can't stand the heat, get out of the chicken!" - Baby Blues

« previous php.pear (#554) next »