> -------- Original Message --------
> Subject: Re: [PHP] IF or SWITCH
> From: "John Wells" <[EMAIL PROTECTED]>
> Date: Thu, April 06, 2006 6:08 am
> To: php-general@lists.php.net
> 
> > ...Either way,
> > internally, switch behaves like if/elseif/else and generally only
> > provides an advantage with respect to code organization or if you want a
> > particular condition to drop through to other case blocks.
> >
> 
> Considering this is regarding an if/else with ***57*** conditional
> checks, wouldn't we be wise in suggesting switch/case if one of its
> benefits is code organization and readability?
> 
> Imagine having to come back to this code block in a months time to trace a 
> bug.
> 
> *shudder*
> 
> I would look very long and hard at how the solution may be simplified,
> although it's hard to offer ideas without understanding the business
> logic.  I'm just hoping for your sake that there is a way.
> 
> Good luck!
> 
> John W
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

Thanks for all the info.  I think I am going to take a lot of this
information in mind to make it more readable... possibly even use a
switch statement, because I know that this logic is going to change,
and I WILL have to come back to this.  Such a pain to completely cover
every possibility under the sun for so many permutations...

Ray

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to