lua-users home
lua-l archive

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

Roberto Ierusalimschy wrote:
> > > I believe that this "break N" will kill code readability as sure as
> Instead, a simple syntax would be to add labels only to "do end" blocks,
> for instance like this:
>   do :label:
>     ...
>   end

What an ugly hack ...

> Then, a continue could be written like here:
>   while cond do
>     do :process_item:
>                     break :process_item:
>     end
>   end

... and that just to create a continue that is spelled "break"?
There are already enough bizarre ways to simulate a continue.
If you want to add continue to the language, that name it

Ciao, ET.