News for hackers. Stuff that matters.
Re:GOTOphobia Considered Harmful (In C) by int_19h on Monday February 27, 2023 @04:40AM (#34954607)
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.

There are no comments on this comment yet.