On Tue, Sep 22, 2009 at 4:03 AM, Mark Wieder wrote:
>
> Actually there's no speed penalty for if/then vs switch constructs.
> They compile down to the same comparisons. If you're going to be
> applying the same tests repeatedly then you may find a negligible
> difference, but overall I wouldn't w
On Tue, Sep 22, 2009 at 5:48 AM, Richmond Mathewson
wrote:
> I have to use either:
>
> 1. A multi-case switch statement with many sub-switch statements inside it,
>
> or
>
> 2. A multi-case switch statement with many IF . . . THEN statements inside
> it,
>
> or
>
> 3. Many IF . . . THEN statements
Richmond-
Monday, September 21, 2009, 12:48:58 PM, you wrote:
> I have to use either:
> 1. A multi-case switch statement with many sub-switch statements inside it,
> or
> 2. A multi-case switch statement with many IF . . . THEN statements
> inside it,
> or
> 3. Many IF . . . THEN statements
I have to use either:
1. A multi-case switch statement with many sub-switch statements inside it,
or
2. A multi-case switch statement with many IF . . . THEN statements
inside it,
or
3. Many IF . . . THEN statements with many IF . . . THEN statements
inside them.
Number 3. is obviously g