[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Error handling
- From: Chris <coderight@...>
- Date: Thu, 16 Feb 2006 21:17:31 -0500
On 2/16/06, Luiz Henrique de Figueiredo <email@example.com> 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