In a message dated 98-05-03 16:12:28 EDT, you write: >WHich is quicker >if (this == that || this == that2) >or >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. Phooey "Yea, I'm on AOL. You wanna make something of it?? +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST