Home > Archive > PHP PEAR Questions and Answers > January 2005 > Re: [PEAR-QA] Little question about switch CS
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR-QA] Little question about switch CS
|
|
| Justin Patrin 2005-01-13, 8:57 pm |
| On Thu, 13 Jan 2005 13:36:47 -0500, Daniel Convissor
<danielc@analysisandsolutions.com> wrote:
> On Thu, Jan 13, 2005 at 12:18:22PM +0000, Helgi ?ormar wrote:
>
> Look closer. There's only one line there.
>
> One tweak should be made: the last "break;" is a waste.
>
Except that keeping it is 1) consistent and 2) makes it easier to make
sure that cases added later don't break anything.
--
Justin Patrin
| |
| Daniel Convissor 2005-01-15, 8:56 am |
| Hi Justin:
On Thu, Jan 13, 2005 at 03:19:54PM -0800, Justin Patrin wrote:
> On Thu, 13 Jan 2005 13:36:47 -0500, Daniel Convissor
> <danielc@analysisandsolutions.com> wrote:
>
> Except that keeping it is 1) consistent and 2) makes it easier to make
> sure that cases added later don't break anything.
Though the default case is supposed to be last in the list, so new cases
should go above it, not below.
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
|
|
|
|
|