lua-users home
lua-l archive

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


It does strike me as well as the more complex at source level, which matters a lot on bigger project with. But than it's a trick and it only makes sense that it reads like one. Alex

 -----Original Message-----
From: 	Curt Carpenter [mailto:curtc@microsoft.com] 
Sent:	Wednesday, June 18, 2003 2:09 PM
To:	Lua list
Subject:	RE: why no "continue" statement for loops?

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