Jan-19-2019, 09:26 PM
Goto statements generate spaghetti code. Spaghetti code is difficult to read, difficult to understand, difficult to maintain, and difficult to troubleshoot. Even in modern languages that incorporate a goto statement, it is avoided like a plague.
Really, any time that you would use a goto, you could just call a function.
Really, any time that you would use a goto, you could just call a function.