lua-users home
lua-l archive

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


On Thu, Nov 15, 2012 at 4:43 PM,  <AllanPfalzgraf@eaton.com> wrote:
> How about the option of declaring variables of a specific type?

It's a popular idea currently; annotate a dynamic language with
optional types so it becomes possible to check more statically, and
easier to build IDEs.  E.g. Dart, and now TypeSafe, as annotated
versions of JavaScript.  Of course, they both go beyond, since people
are terribly nostalgic about class-based OOP.

We could get most of the way there with structured comments with type
information. Then the gaps can be filled with type inference, and one
gets a very grown-up IDE experience.  And that is precisely what the
Eclipse Lua project is all about.

steve d.