15.01.2014, 17:50
Quote:
This should be common knowledge, but I'll be sure to link people here whenever I see this kind of structure. Nevertheless, the if-else structure isn't inherently "wrong" since it will still work. Perhaps "bad" or "not recommended" would be a better wording.
|
Quote:
Agree with Vince. I won't be minding to use if-else statement for any amount of cases. Just that it is slow as compared to switch statement. NOT bad or wrong or etcetera. Also, this isn't called a tutorial, you have just gave a hint/suggestion in improving it. Just provide some something like information about if-else statement and switch statement.
|
Quote:
It is simple, but it uses as much .
+Rep. Ah, more simplified. |
Thank you.