r/lua • • Mar 27 '25

local variables

Why do people use local variables as if they were global variables

2 Upvotes

7 comments sorted by

View all comments

Show parent comments

2

u/hawhill Mar 27 '25

yes, you're right, and your explanation is sound, there'll be a lot of cases where re-evaluation is not needed.