|
-
Sep 1st, 2013, 11:10 PM
#9
Re: Do not use GOTO
 Originally Posted by AdamPanic2013
How is it spaghetti code?
As has already been pointed out, using GoTo doesn't inherently create spaghetti code but its use does make spaghetti code possible. By encouraging beginners to use it you just about guarantee spaghetti code. If you're very disciplined then you can use it without making your code unnecessarily complex but beginners aren't disciplined. They will just use GoTo all over the place, even when there are better options, and get themselves in a mess. If you have avoided GoTo as a beginner then why would you start using it later?
 Originally Posted by AdamPanic2013
The hard parts is jumping back into the loops! and preserving the current loop values so you can resume it at a later point.
Would you like some tomato sauce with that spaghetti code?
Tags for this Thread
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
|