-> You are entitled to your opinion, and it's certainly a subject on
-> which there are strongly held views! However I can assure you that
-> I'm not some sort of masochist; my choice to write BBC BASIC programs
-> entirely without GOTOs for the last 25 years is not to cleanse the
-> soul! It just never occurs to me to use a GOTO, and I can honestly
-> say that I never feel the lack of it.
I don't use GOTO often. In many programs, I don't use it at all. But
there are occasions when I find it useful. For example, a program may
do a long set of operations and, at the end, ask the user if he wants
to do it all again, presumably with a different set of inputs. Then I
might have a line such as:
IF Choice$ = "Y" GOTO Start
Start, of course is some label back at the beginning of this long loop.
Doing it this way is, I think, both easier and more legible than
writing some long DO...LOOP, or any other equivalent structure.
Incidentally, does anyone here know why the word THEN is *not*
necessary in Microsoft BASICs in IF...GOTO... statements?
dow


|