If I have a table with known properties, but where the order of the properties is potentially unknown:
local person = {
name = 'James',
age = 30,
}
can I reliably destructure it:
local name, age = unpack(person)
My worry is that if the order of the fields in the table is changed, that destructuring assignment will no longer work as expected.
local name, age = personwill just assignpersontonamein Lua.local name, age = person.name, person.age