3 ms·
>... are there countless abstractions and programming language mechanisms that bounce you around the text in ways that Go TO could have never dreamed of. Like?
by coldtea 8y ago
>... are there countless abstractions and programming language mechanisms that bounce you around the text in ways that Go TO could have never dreamed of.
Like? What are those abstractions and mechanisms?
Well written programs can (and do) make use of no such mechanisms, in any case. Where have you seen those? Any particular example that moves the flow the way Goto does?
Exceptions come to mind, and people always point out that its bad to abuse exceptions for control flow (e.g. using them like a kind of goto).
The problem with goto (which is not considered a problem when used in local scope, e.g. for cleanup code within a function) is that it moves the flow of execution away and makes it difficult to track.
A function (or e.g. a continuation in Node) doesn't have that problem: you return back to where you started.