Is there a difference between declaring a variable like this:
\_G.someVariable = something
vs this:
someVariable = something
I used to have a utility module that I had to import in every single file I needed to use it in. Then I started importing it once into main.lua and assign it to a global variable. Now I’m thinking of making the module itself global like this:
M = {} M.someVariable = something return M
Would it be considered a good practice to do it this way?