[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Exceptions (was Re: Custom extensions to Lua)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 11 Aug 2005 13:44:12 -0300
> I think part of the issue is that Lua has a couple of methods for reporting
> errors:
Sure, but they serve different purposes. Throwing an error is meant for
hard errors, things that should not occur and the programmer doesn't
what to handle. Returning nil+message is meant for soft errors, things
that may occur and that the programmer wants to handle. Or am I missing
something? --lhf