[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: promoting Lua
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 29 Oct 2009 15:48:48 +0200
On Thu, Oct 29, 2009 at 3:40 PM, Asko Kauppi <firstname.lastname@example.org> wrote:
> One thing that would be so nice to have is optional typing. I think Python 3
> has that (correct if I'm wrong).
It seems to be done through decorators, and it looks like an
assertion-at-runtime kind of thing.
> And C# has something similar, coming from the other direction.
Yes, 'var ls = new List<MyDamnLongType>()', wrist-saving
type-inference. Still considered spawn of the devil in the Java world.
Metalua has an extension which does something like the Python example.
Though, would Lua be Lua if it had static typing, in the sense of
something that could be checked at compile time?