Conding standards, one true brace?
| From: | Sebastian Delmont | Date: | Wed, 16 Jan 2002 05:52:41 +0000 |
| Subject: | Conding standards, one true brace? | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-3951@lists.php.net to get a copy of this message | ||
First, let me introduce myself... I'm new to PEAR, but I've been working
with PHP for several years, doing all kinds of development, from quick hacks
to very large sites.
Anyway, since I've missed most of the discussion, maybe I'm touching a point
that has been discussed to death before. If you have, please disregard my
comments (but if you don't mind, reply explaining them :-)
While control structures use the "open brace in the same line" format,
function definitions use the "open brace on next line, no indent" (or, as
called on the docs, "one true brace")
Why not use a single style for both? Preferably, the "same line" one.
Regards,
Sebastian Delmont