Re: break statement usage
| From: | DL Neil | Date: | Sun, 27 Jan 2002 15:12:17 +0000 |
| Subject: | Re: break statement usage | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82213@lists.php.net to get a copy of this message | ||
Private note: heard the one about throwing stones and living in glass houses?
> <tip>
> Try to keep your posts a little shorter
> if only for the sake of the dialup users ;)
> </tip>
this said by someone who:
- pushes MIME messages into a discussion list/newsgroup (instead of simple text format which is
almost-universally preferred/required/recommended on lists),
- has a (unnecessary) PGP addendum on every msg sent,
- frequently ends up sending msgs which open as blank screens, until certain email client users make
the extra
effort of opening an attachment (a virus risk in most 'warnings/good practices'
descriptions)
but whose contributions are often much appreciated!
Regards,
=dn
(whose 'crimes' include the use of (some) M$ products)
----- Original Message -----
From: "Nick Wilson" <nick@explodingnet.com>
To: "PHP" <php-general@lists.php.net>
Sent: 25 January 2002 21:24
Subject: Re: [PHP] break statement usage
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> * and then Erik Price blurted....
> > So what I'm wondering is,
> >
> > Is it bad coding practice to make heavy use of "break" statements in
> > switch() flow control?
>
> That's exactly the point of the break statement, it was designed to be
> used in a switch statement to 'break' from the statement.
> It replaces the need for complex and untidy 'if else' monsters.
>
> <tip>
> Try to keep your posts a little shorter
> if only for the sake of the dialup users ;)
> </tip>
>
> Cheers
> - --
>
> Nick Wilson
>
> Tel: +45 3325 0688
> Fax: +45 3325 0677
> Web: www.explodingnet.com
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
>
> iD8DBQE8Uc0PHpvrrTa6L5oRAvcAAJ9Z67PVwgyNN7WFpf/R0wvN97IMkgCgm53O
> 1TbPTWhwyl8FNEhtLRRYv/c=
> =UDbQ
> -----END PGP SIGNATURE-----
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>