From my understanding, it’d only cause a problem if you index it like this:
SomeTable[SomeVariable] = "SomeString"
Because this would then add a key/value pair into the dictionary using the variable rather than updating the pre-existing key called “SomeVariable”.
Example:
local SomeTable = {
SomeVariable = {}
}
local SomeVariable = "hi"
SomeTable.SomeVariable = "SomeString"
SomeTable[SomeVariable] = "Another Value"
warn(SomeTable) -- [[ This prints the following:
["SomeVariable"] = "SomeString",
["hi"] = "Another Value"
--]]
No they are different references however, if you were to do something like SomeTable[SomeVariable] this would error depending on what SomeVariable is set to.