Yeah, I remember when I was trying to parse XML into some lua tables and it forever stumped me how to represent something like
<thing important_param=10 other_param="abracadabra"> stuff </thing>
You just have to have different ways to turn different tags into stuff in your program and that's a huge amount of overhead to think about when all I want is a hash map and maybe an array.
Wait,
let
is to introducelocal
s butlocal
is to introduce variables available in the whole file?...so
local
creates global variables? What?...and
local
creates constant values?