lua-users home
lua-l archive

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


> 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