lua-users home
lua-l archive

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


On Mon, Sep 17, 2018 at 9:36 AM Sean Conner <sean@conman.org> wrote:
> "intercept" error() (basically, pcall() is a catch to error()'s throw).  But
> my main thrust against exceptions is really your case (b)---if you catch a
> Lua syntax error via pcall(), what can you realistically do in that case [9]?

If your system is radiation critical, probably you have a redundant
cache for your code. If one fails, you can at least try to load the
second one.

However, I 100% agree that OOP and Exceptions are commonly abused/misused.