mt-mods / xcompat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Avoid using the global keyword `table` as a function argument name

dacmot opened this issue · comments

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.

I'm surprised luacheck didn't complain about that 🤔