|
-
January 6th, 2009, 05:56 PM
#13
Re: How to Elegantly code an if()?
 Originally Posted by Mutant_Fruit
But that is extremely complicated. You're adding a lot of complexity for no performance gain. This is why premature optimisation is bad 
I agree with that, but in this case I think it is a better approach. I would rather know that something will always be in the correct state instead of using if's to check. As you say though, that if statement is probably not an issue.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|