lua-users home
lua-l archive

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


On Sat, Nov 20, 2010 at 8:54 AM, Nilson <nilson.brazil@gmail.com> wrote:
> What about  "tagged blocks" as an alternative to goto. (similar to Ada exit)?
> You can use with any command that creates a block - if, while, repeat,
> for, do or even a function.
> and with the end to inform the compiler what it closes (avoids
> inconsistent end comments) .
>

Or perhaps instead of  "tagged block" a "named block" that could be
used with functions too.

function :name SyntacticalSugarName  ()
end :name

We could introduce real named functions in a orthogonal way.

-- 
Nilson