Re: switch vs if

From: Phooey182 (Phooey182@AOL.COM)
Date: 05/03/98

In a message dated 98-05-03 16:12:28 EDT, you write:

 >WHich is quicker
 >if (this == that || this == that2)
 >switch (this) {
 >  case that:
 >  case that

with a simple statement like this, I'd assume the difference is negligible,
even if it
is accessed a lot.  If your actual code is more complicated than this, I'd go
for a switch statement.  I think they're just easier to deal with.

"Yea, I'm on AOL.  You wanna make something of it??

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST