[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: try..catch for Lua 5.2?
- From: Mark Hamburg <mark@...>
- Date: Mon, 13 Sep 2010 07:28:15 -0700
On Sep 13, 2010, at 6:34 AM, Duncan Cross wrote:
> On Mon, Sep 13, 2010 at 2:09 PM, HyperHacker <firstname.lastname@example.org> wrote:
>> I just want to add my +1 vote. Some sugar around pcall and error for
>> exception handling would make a lot of messy code neater.
> One thing is that people would expect 'break' and 'return' to work
> inside a try block, which makes the sugar required significantly more
> complicated than you might expect at first glance.
These are also the thing that make lightweight or middleweight (if lightweight just supports expressions) function syntaxes fail.