Most reasonable programmers have understood &quot;GOTO Considered Harmful&quot; to be a recommendation, not a doctrine.<p>Goto can be very useful when used carefully, most often for a &quot;cleanup&quot; block, as used in the example above. It&#x27;s especially common in C where the memory needs to be freed before exiting.