View Single Post
  #17  
Old 08-24-2012, 01:09 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Gunderak View Post
The slightest inconsistency could render the results useless.
Which is why I said that such a small difference is totally negligible and that the only factors you should take into account when choosing between a switch statement and an if-statement are things like code maintainability and readability. Neither an if-statement nor a switch statement are going to be your bottleneck.
__________________
Reply With Quote