[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Exception handling (was Re: ...add to Lua...)
- From: pocomane <pocomane_7a@...>
- Date: Mon, 17 Sep 2018 10:20:36 +0200
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.