4 ms·
I remember getting "sniffy" comments for using a GOTO in my final year project, (which was written in Pascal). Basically, it was used to terminate the program
by Wildgoose 5y ago
I remember getting "sniffy" comments for using a GOTO in my final year project, (which was written in Pascal).
Basically, it was used to terminate the program without having to thread a return-value through very heavily nested code.
I haven't needed to use a GOTO since. But almost 35 years later, I still maintain it was the correct decision at the time: a single GOTO statement was the clearest and most efficient choice.