Re: CS discussion
| From: | Jon Parise | Date: | Wed, 16 Jul 2003 18:29:07 +0000 |
| Subject: | Re: CS discussion | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-67@lists.php.net to get a copy of this message | ||
On Wed, Jul 16, 2003 at 10:13:09AM +0100, Bruno Pedro wrote:
> I also prefer that solution (I suggested that in the first place), but
> after taking a look at the Java Coding Standard Version 2.0 "Line
> length" section I came across this:
[snipped]
It's not hard to find examples of either style in coding standards:
Christopher Seiwald advocates breaking conditions at the operators and
then aligning them:
http://www.perforce.com/perforce/papers/prettycode.html
The Python style guides suggests wrapping lines after the operator:
http://www.python.org/peps/pep-0007.html
(C code)
http://www.python.org/peps/pep-0008.html
(Python code)
--
Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)