[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: why no "continue" statement for loops?
- From: "Curt Carpenter" <curtc@...>
- Date: Wed, 18 Jun 2003 14:09:19 -0700
>> It doesn't look similar to me. One has two loops, the other has one.
An
>> extra loop adds complexity.
> The inner loop is the only difference I can see.
>
> It does not add complexity as the inner loop is _always_ executed only
once.
> Since the inner loop is finished with a break, it will never have a
chance
> for a second execution.
I was referring primarily to the complexity of the source code, not the
run-time performance.
Curt