lua-users home
lua-l archive

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


Mark Hamburg wrote:
I find myself writing a fair amount of code that avoids going down a path
when something is nil and if this is a common pattern for other people it
might be useful to encode it in some form of syntactic sugar.

In other languages (e.g. Python), I think you'd be employing exceptions in this kind of situation. It seems like Lua has the low-level mechanisms in place to support some kind of exception construct. I'd be more interested in development in this area than what you are proposing.

-John

--
http://giftfile.org/  ::  giftfile project