[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Common Lua (Logic/Style etc) Errors Detectable Through Static Analysis
- From: Jon Akhtar <akhtar@...>
- Date: Tue, 15 Feb 2011 09:49:57 -0500
> This isn't necessarily a flaw. It's inefficient in Lua, but
> there's no performance loss in LuaJIT (*). You may want to
> separate these 'code smells' into categories that can be turned on
> or off. Or maybe offer different profiles.
>
> (*) The array part of LuaJIT tables is zero-based internally,
> but the visible semantics for {} and # stay the same.
Thanks for the reply. You are right, many of these are "code smells".
I didn't mention the different categories so as not to confuse the
question. I already do offer categories and the ability to turn off
any of the "inspections" according to the user's taste.
-Jon