lua-users home
lua-l archive

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


> As I said, I think I read in an old message by Roberto or Luiz (in
> an old of those endless threads about the beauty of continue) that
> Lua team wasn't in principle contrary to the introduction of
> continue as a counterpart of break, but the problem was that it was
> too tricky to get it right with the current (5.1.4) semantics of
> repeat-until because of the possibility of bypassing the scope of a
> local declared after the continue (*IIRC* - please feel free to
> correct me if I'm wrong).

You are :) The problem with repeat-until was only a detail. The main
problem with continue was (and still is) that, for us, it is just one of
many different forms of "domesticated goto" and we did not see why to
include this one without including the others. (We could argue the
same about 'break', BTW.)

-- Roberto