- Joined
- Jul 17, 2007
- Messages
- 532
- Reaction score
- 0
Now, i read everywhere about many people having a problem with the use of the goto statement (Java even removed it from their language to avoid the use of it - If i'm not mistaken? :tongue
But my question is - Why all the bad publicity for it? Goto statements are generally useful in the odd ocassion!
I also have another quick question - In regard to performance issues would it be quicker to do for example
Rather than
And if there is a difference, by how much? Its just i don't really like the idea of having a massive If statement and to me the second option looks a lot cleaner and easier to follow, is there a Big difference - Or would it compile more or less the same? :tongue:
~ Jeax
But my question is - Why all the bad publicity for it? Goto statements are generally useful in the odd ocassion!
I also have another quick question - In regard to performance issues would it be quicker to do for example
Code:
If (Value == Value2)
{
// Big chunk of code here
}
Rather than
Code:
if (Value == Value2)
Goto GotoStatementName;
And if there is a difference, by how much? Its just i don't really like the idea of having a massive If statement and to me the second option looks a lot cleaner and easier to follow, is there a Big difference - Or would it compile more or less the same? :tongue:
~ Jeax

