[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Syntactic sugar idea: Safe use of nil
- From: John Belmonte <john@...>
- Date: Mon, 28 Jun 2004 21:33:02 -0400
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.
http://giftfile.org/ :: giftfile project