Re: Perform loop enhancements

From: Richard (riplin_at_Azonic.co.nz)
Date: 10/29/04


Date: 28 Oct 2004 16:46:19 -0700

Peter Lacey <lacey@mb.sympatico.ca> wrote

> Seems to me you're adhering to a principle at the expense of
> simplicity. If you have two different types of your exit
> paragraph/perform, and both of them are exactly equivalent to a GOTO -
> why not use a GOTO? Then there'd be no question as to which type of
> exit you're doing, nor would there be any doubt as to where control
> resumes.

This seems to be the trigger for where I do my usual discourse on "it
isn't the GOTO that is harmful, it is the label that it requires that
is the probelem", but I won't.



Relevant Pages

  • Re: Is David Fenton right about error handling? (re-post?)
    ... > Error Goto 0 a proper termination. ... after the Exit Function. ... Clears all property settings of the Err object. ... Exit Sub, Exit Function, Exit Property ...
    (comp.databases.ms-access)
  • Re: On Local Error Goto Somewhere
    ... an EXIT DO or EXIT FOR. ... going if there is no label to show you the destination. ... IMO the GoTo statement has never been "THE" problem. ... ON ERROR GOTO MySubErr Dim lFNbr as long ...
    (microsoft.public.vb.general.discussion)
  • Re: Perform loop enhancements
    ... >> simplicity. ... If you have two different types of your exit ... >> why not use a GOTO? ... Ranting about the label ...
    (comp.lang.cobol)
  • Re: COBOL aint quite dead - yet !
    ... The point about goto is that there is nothing at all wrong with a goto ... For example the use of an exit paragraph signals ... loops - which was all about replacing a GOTO with something that did the ...
    (comp.lang.cobol)
  • [patch 06/10] Introduce path_put()
    ... goto fail; ... return err; ... * Given a path decrement the reference count to the dentry and the vfsmount. ...
    (Linux-Kernel)