[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Improvements for creating DSL with Lua
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 18 Aug 2009 08:06:21 +0200
On Tue, Aug 18, 2009 at 5:22 AM, David Manura<dm.lua@math2.org> wrote:
> has.x { is = 'rw', isa = 'number', default = 0 }
>
Yes, that's a good example of Lua being used creatively.
If there is a default, then usually 'isa' can be easily auto-detected;
there can be a default for 'is' as well.
Can then have the default notation:
has.x (0)