Re: how do people feel about exit function from loop



"greg" <greg@xxxxxxxxxx> wrote in message
news:%23jsxyFXzHHA.4844@xxxxxxxxxxxxxxxxxxxxxxx

In general,
How do people feel about using exit function from inside of a loop?
Is it bad practice?

As everyone says... it's upto the coder. Personally, I'd rather there be a
single way in and a single way out of a procedure. It just makes maintenance
that much easier, imo.

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm


.



Relevant Pages

  • Re: Batch file and MFC (Properly Terminating Application)
    ... I never worked with MFC before and I wanted a response ... at it and then make corrections-that is, practice, practice and ... that processes user inputsuch as clicking of Exit Button. ... I give user a few seconds for each input via a while loop where I call ...
    (microsoft.public.vc.mfc)
  • Re: strlen(), K+1: clarification
    ... )> And if Clive used an invariant in a for loop, well, what's wrong with ... a for loop. ... It IS good practice. ... of the terminating value is automatically hoisted out of the loop ...
    (comp.programming)
  • Re: Perform Thru/Go to vs. Perform - Compile Speed
    ... various fields and possibilities but no necessity to loop or jump out of line. ... As a maintenance programmer by trade ... The people who never use THRU because disaster can happen if there's an extra label ... there are quite correct in their practice. ...
    (comp.lang.cobol)
  • Re: strlen(), K+1: clarification
    ... )> And if Clive used an invariant in a for loop, well, what's wrong with ... a for loop. ... It IS good practice. ... of the terminating value is automatically hoisted out of the loop ...
    (comp.programming)
  • Re: Determine if open(2) created or opened (again)
    ... Michael B Allen said: ... In practice the code might work for most cases, ... the exact race condition that makes this functionality impossible. ... goes through the second "if" structure within the while loop ...
    (comp.unix.programmer)