lua-users home
lua-l archive

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



On Apr 14, 2014 6:34 AM, "Thomas Jericke" <tjericke@indel.ch> wrote:
>
> On 04/14/2014 10:19 AM, Justin Cormack wrote:
>>
>> I agree with Roberto, consistent types is more important. If you
>> cannot tell if something will return float or int you can then no
>> longer reason about other stuff that depends on it. Anyone trying to
>> do static analysis on Lua code will have a hard time too.
>>
>> Justin
>>
> As soon as any static analizer hits a function call, it wont be able to decide this anyway.

That's why your code is dense with //1 and /1: to give the static analyzer back known types.

I think I'm joking. That won't really help LuaJIT, right?