Re:Ravi – Lua 5.3 with optional static typing
by PicassoCT on Sunday October 18, 2015 @08:38AM
(#10408056)
type-safety allows for the generating of far more efficient machine code.
And you type your language everywhere, the difference is the time it happens and the consistency of the rules below handling type-conversions.
lua sets the type depending on the value assigned at run-time. There are a lot of non-dynamic lanugages who pretend to have dynamic types (var)but actually just let the compiler deduce at compile time the assigned valuetype
lua sets the type depending on the value assigned at run-time. There are a lot of non-dynamic lanugages who pretend to have dynamic types (var)but actually just let the compiler deduce at compile time the assigned valuetype