lua-users home
lua-l archive

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


On Fri, Feb 25, 2022 at 10:22 PM Павел Отчерцов wrote:
I wonder if this is okay for local const variables to be shadowed?

Variable shadowing is a valid (and sometimes indeed useful) feature of Lua.
It might be ok or not ok to use it in a production code depending on your code style guide.