lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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