[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available)
- From: GrayFace <sergroj@...>
- Date: Fri, 11 Jul 2014 04:08:23 +0700
On 11.07.2014 0:35, Roberto Waltman wrote:
On 07/10/2014 07:04, GrayFace wrote:
Lua desperately needs a form of optional static typing, not those
gotos with ugly syntax.
Since I used Lua for the first time, (~ 7 years ago,) my "would be
nice if" list includes a "freezeType(val)" function that would
constrain future assignments to val to its current type. Of course, if
the type is table, that is a very weak limitation.
[ What about a freezeValue() ? ]
I never needed such things. I'm talking about tables with fixed fields,
that is: objects, modules, _G etc. Basically, to catch any misspelled
globals or table fields.
Sergey Rozhenko mailto:firstname.lastname@example.org