Try telling a surgeon he is limited to only one tool for cutting. These two needs are illustrated by the following code . Often the simplest and most straightforward way of breaking out of a loop was to use the dreaded GO TO . The problem with the GO TO is that you must locate the target in the program to figure out what the programmer is doing. A comment can do this, but when you pick up an old program, you have no control whether it will contain comments, or whether any original comments in the program were maintained.
Comments are always last written and least maintained.
There is nothing wrong with this, but it does take the code out of line so that it is no longer in front of you as you read the program. Code is only readable when it is in front of you, and paging screens or flipping listings back and forth to follow logical flow is often a pain. Here is an example using the GO TO to jump to the end of a loop and continue. Then somewhere else in the program, you could place the paragraphs that form the rest of the loop . At this point, things are far more complicated than is justified.