You can argue, why have them in the first place?
Well, maybe it's someone else's code, or you were learning with Goto statements, and you want to stop using them now. Or maybe it wasn't too bad, but your program got huge and it's time to get away from spaghetti code.
Whatever the reason, you want to remove your Goto statements!
Check out this classic article from Nonki:
Here are the sections...
Table of Contents
- Endless Loop
- Conditional Jump
- More Complicated Case
- See Also
- Other Languages
Thanks to Yan Grenier, it's also available in French:
Have a Small and Basic day!
- Ninja Ed