3 ms·
Structured if/then/else is also merely syntactic sugar over if/goto, but that doesn't make it any less useful. What makes break/continue (including labelled va
by int_19h 4y ago
Structured if/then/else is also merely syntactic sugar over if/goto, but that doesn't make it any less useful.
What makes break/continue (including labelled variants a la Java) useful is the fact that the restriction on where they can jump means that the control flow graph is guaranteed to be reducible. That is not the case with free-form goto.