After 34 years of programming I am still unable to understand why the GOTO is so evil. I've seen and written many programs using GOTO and GOSUB and "dreaded" line numbers and they are all easily understood even today after all these years. Machine code uses GOTO's and after all, us people are using GOTO very often, don't we.
Sorry about this little outburst but I am getting mad when I see that a perfectly good and natural programming command is evil while many, many more C and C-like crap is praised to high heaven.
And some forgotten GOTO variants are just as useful (if not more) than what we are forced to use now. For example, I'd wish at least one modern language would have something called computed GOTO or computed GOSUB:
ON (iVar) GOTO Label1, Label2, Label3...
Barney
Sorry about this little outburst but I am getting mad when I see that a perfectly good and natural programming command is evil while many, many more C and C-like crap is praised to high heaven.
And some forgotten GOTO variants are just as useful (if not more) than what we are forced to use now. For example, I'd wish at least one modern language would have something called computed GOTO or computed GOSUB:
ON (iVar) GOTO Label1, Label2, Label3...
Barney