Re: how do people feel about exit function from loop
- From: "Steve Gerrard" <mynamehere@xxxxxxxxxxx>
- Date: Tue, 24 Jul 2007 08:08:55 -0700
"Jan Hyde (VB MVP)" <StellaDrinker@xxxxxxxxxxxxxxxxxxx> wrote in message
news:fbdba3pcbrgsrkdllt2tm4idhg7r658bo7@xxxxxxxxxx
"Ken Halter" <Ken_Halter@xxxxxxxxxxxxxxxxxxxxxxxxx>'s wild
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.
--
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.
.
- Follow-Ups:
- Re: how do people feel about exit function from loop
- From: Michael C
- 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)
- how do people feel about exit function from loop
- Prev by Date: Re: Extract Oracle data to Excel without header
- Next by Date: Re: Please help translate that from C#
- 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
|