Re: how do people feel about exit function from loop
- From: "Michael C" <nospam@xxxxxxxxxx>
- Date: Wed, 25 Jul 2007 09:42:09 +1000
"Steve Gerrard" <mynamehere@xxxxxxxxxxx> wrote in message
news:js2dnQMV9MvgizvbnZ2dnUVZ_sOrnZ2d@xxxxxxxxxxxxxx
Indeed, I find more and more that I like to declare a boolean expressly
for the purpose of controlling a loop, such as Found or Done. It makes the
code completely clear, it is easy to adjust the conditions where the flag
gets set, and it is useful following the loop for deciding what to do
next.
While Not Done
always makes perfect sense to me as a loop control.
Isn't an exit for that much simpler tho? You still get to have one way out
of a function if that is important to you (in 99% of functions it is not).
Michael
.
- Follow-Ups:
- Re: how do people feel about exit function from loop
- From: Steve Gerrard
- Re: how do people feel about exit function from loop
- From: Robert Morley
- Re: how do people feel about exit function from loop
- References:
- how do people feel about exit function from loop
- From: greg
- Re: how do people feel about exit function from loop
- From: Ken Halter
- Re: how do people feel about exit function from loop
- From: Jan Hyde (VB MVP)
- Re: how do people feel about exit function from loop
- From: Steve Gerrard
- how do people feel about exit function from loop
- Prev by Date: Re: Compacting a Random created file
- Next by Date: Re: Package and deploy
- Previous by thread: Re: how do people feel about exit function from loop
- Next by thread: Re: how do people feel about exit function from loop
- Index(es):
Relevant Pages
|