Avoid using the global keyword `table` as a function argument name
dacmot opened this issue · comments
Olivier Dragon commented
In the file sounds.lua, many functions use table
as an argument name. Since table
is also a global variable, it ends up being shadowed or redefined locally. This is generally regarded as a poor programming practice as it can be confusing what table
is referring to.
OgelGames commented
I'm surprised luacheck didn't complain about that 🤔