Re: [rfc] new coding standar rules

From: Date: Fri, 21 Dec 2001 14:29:33 +0000
Subject: Re: [rfc] new coding standar rules
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-3654@lists.php.net to get a copy of this message
Alexander Skwar wrote: > > So sprach »Tomas V.V.Cox« am 2001-12-21 um 07:34:14 +0100 : > > b) constants (I would porpose UPPER_CASE_ONES) > > +1 > > > c) spacing in control structures (one space between the command and the > > statement: "if ($a)" or "while ($a)") > > +1 > > ie. spaces before every "comparison"/operator. Yeah, I remember that we discussed that time ago: a space arround operators and imo it's actually good. Examples: $a = $b; $a =& $b; $a = $b . $c; $x = $y + $z; if ($a && $b) if ($a == $b) Another one could be code wrap lenght. For example always try to wrap long lines to 70-80 chars. Hum.. I remember also the we also agreeded that "null", "false" and "true" could all be in lowercase. Perhaps we could open a "other recomendations" chapter for the coding standar with all that, suitable for people how wants to follow a strict convention. Tomas V.V.Cox

« previous php.pear.dev (#3654) next »