• Please review our updated Terms and Rules here

Writing ZX-81 Basic on PC?

What is wrong with using GOTO?




1 - I don't like wasting time writing line numbers.

2 - If I move a block of code, I will have to renumber the line numbers.

3 - I can make a mistake when writing line numbers in a GOTO command or even a line number.

4 - I don't need to write line numbers if I use Pascalated BASIC.

5 - If I use REPEAT-UNTIL, WHILE-DO and IF-THEN-ELSEIF-ELSE-ENDIF then I can read the code better.

5 - Etc.
 
There is one school of thought that says writing software without the use of a GOTO is the purest and more 'correct' way of writing software.

But other people do not subscribe to this heresey!

Dave
 
But other people do not subscribe to this heresey!

Dave



People should do what they think is right.
If they are wrong, they will probably end up recognizing their mistake and changing their behavior....
 
But the right thing is not always the same.
The rules may change depending on circumstances.
 
People should do what they think is right.
If they are wrong, they will probably end up recognizing their mistake and changing their behavior....

I heard Intel is going to remove JMP from the x86 architecture.

It was all good and well until someone pointed out this was also a GOTO... Now everything will have to be CALLs ;)
 
Back
Top