Re: how do people feel about exit function from loop



"Ken Halter" <Ken_Halter@xxxxxxxxxxxxxxxxxxxxxxxxx>'s wild
thoughts were released on Mon, 23 Jul 2007 15:12:56 -0700
bearing the following fruit:

"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.

Me too, even in means checking a flag just for that purpose.
--
Jan Hyde

https://mvp.support.microsoft.com/profile/Jan.Hyde
.



Relevant Pages

  • Re: "Super Science"? Some practical examples, please.
    ... Being from Australia is ... prima facie evidence of being a fruit loop. ... John S. Wilkins, Philosophy, University of Queensland ...
    (talk.origins)
  • Re: Mathmode.pdf and braket.sty
    ... cunning and perhaps a little more general. ... one effectively would have to design a special exit function for each one. ... The advantage (besides working for all these loop constructs) is that this ... having to shuffle tokens about. ...
    (comp.text.tex)
  • 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: How can i clear the contents of an existing db to start again.
    ... > Vincent and Van have told you the mechanics of how to delete from existing ... You could also delete all the tables in a loop and repeat the loop a few times. ... Case "MSys" 'Don't delete the MSys* tables ... Exit Function ...
    (microsoft.public.access.queries)