lua-users home
lua-l archive

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


On 2/16/06, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> I would be very interested in learning more about this as the perceived lack
> of exceptions or "goto" is limiting the quality of code I am producing.

If you're really into "goto", I can try to revive my hack described in
http://lua-users.org/lists/lua-l/2004-09/msg00244.html , but this was
only for local goto, not global goto, which is what I think you mean
when you mention goto in the context of exceptions.

Local goto would be excellent.  I hate artificially breaking code up into tiny one-use functions just to prevent extremely indented and hard to read code.  Goto keeps you from having to nest so deeply.  I actually prefer it over proper exception handling sometimes.

--
// Chris