Re: cvs: php4 /ext/standard fsock.c
| From: | Andrei Zmievski | Date: | Mon, 20 Aug 2001 13:02:57 +0000 |
| Subject: | Re: cvs: php4 /ext/standard fsock.c | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-6969@lists.php.net to get a copy of this message | ||
On Sat, 18 Aug 2001, Sterling Hughes wrote:
> 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?
That's a pathological case, and it looks really bad with 8-space tabs,
but okay with 4-space ones. Having switches inside switches is not a
good code anyway, though.
-Andrei
* All of the above is my opinion, unless specified otherwise. *