Re: cvs: php4 /ext/standard fsock.c
| From: | Sterling Hughes | Date: | Sat, 18 Aug 2001 17:18:16 +0000 |
| Subject: | Re: cvs: php4 /ext/standard fsock.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-6938@lists.php.net to get a copy of this message | ||
On Sat, 18 Aug 2001, Andrei Zmievski wrote:
> On Sat, 18 Aug 2001, Andi Gutmans wrote:
> > Up to today we have actually indented the case statements. Personally I
> > think it's more readable and as most code in PHP is this way I think it
> > should stay like this.
>
> I agree.
>
a) not k&r (moot issue, we should code to whatever is agreed upon as
the best style, but just for interests sake).
b) its better when you have many levels of indentation:
switch (foo) {
case bar:
switch (barina) {
case foorino:
if (foorino == foo)
break;
}
}
is nicer, imho, than:
switch (foo) {
case bar:
switch (barina) {
case foorino:
if (foorino == foo)
break;
}
}
no?
-Sterling