"Travis Low" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have to say I like everything about the PEAR coding standards except for
the
> K&R bracing style. I much prefer:
>
> if( foo )
> {
> blah;
> }
>
> to
>
> if( foo ) {
> blah;
> }
>
>
> The latter form (K&R) conserves vertical space, but I find it a lot harder
to
> follow. Harder to move blocks of code around too. I'm sure plenty of
people
> disagree, so of course this is IMHO.
Hi Travis,
I totally agree with you. I'm coding this way:
if (foo)
{
// code
}
elseif (bar)
{
// code
}
else {
// code
}
This makes it very easy to follow if/elseif/else structures in code. But the
PEAR style is the one usually used in Java as well so I guess it's the style
most people use.
Regards, Torsten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php