better way than nested switches that are 3-4 pages long = if/else statements
;)

On Wed, Jun 25, 2008 at 11:25 PM, Kerry Thompson <[EMAIL PROTECTED]>
wrote:

> Steven Sacks wrote:
>
> > I disagree that switch statements are more readable than if else
> > statements, at least if you put your braces on their own lines.
>
> I'm a die-hard switch/case guy, but I agree with Steven on this. Neither is
> inherently easier or harder to read.
>
> Of course, I personally prefer switch statements, but I think it's a matter
> of style. Steven's example is every bit as readable as a switch statement.
>
> Also, with switch statements, you have to be careful about nesting switch
> statements. I've seen switch statements with nested switches that are 3-4
> pages long. There has to be a better way to write code than that.
>
> Cordially,
>
> Kerry Thompson
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to