Re: [rfc] new coding standar rules
| From: | Alexander Skwar | Date: | Fri, 21 Dec 2001 07:28:19 +0000 |
| Subject: | Re: [rfc] new coding standar rules | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-3636@lists.php.net to get a copy of this message | ||
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
But how about ANDs and ORs in control structures?
if ('a'==$a&&$b>=-2)
or (my preference):
if ('a' == $a && $b >= -1)
ie. spaces before every "comparison"/operator.
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.iso-top.de | Jabber:
askwar@charente.de
iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 4 days 15 hours 28 minutes