Hi, this might be a silly question but I would really want to know more about the lua implementation in our v2 lua. This question is focused on the life span of variables. So in each of the ${}
block or space-lua
code block there are some variables available especially those we marked local
. I wonder if 1) ${}
is the same as space-lua
block 2) and what variables can those blocks attend and how long would the local
variables inside these blocks live?
Personally I would inclined to have a largely separated scope for each of the small block with only some predefined or global variable available. But I don’t know if my intuition is correct with the current space-lua implementation?