[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Any plans regarding static typing in core Lua?
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 8 Mar 2016 08:41:49 +0200
On Tue, Mar 8, 2016 at 2:59 AM, Karel Tuma <kat@lua.cz> wrote:
> Such a project is simply better served as a separate recompiler targeting Lua.
> It could easily surpass current Lua codebase in line count if you're wishing
> for something robust enough to allow for large scale application development.
Exactly. This is why TypeScript exists and why it's implemented as a
recompiler and not part of the EcmaScript standardization.
(Not only for type-safety and discoverability, but for general ease of
browsing and navigation)
I suspect one could get pretty far with type annotations as part of
the _documentation_ of an interface.