Localize loop iterators #12
Labels
added
The requested feature was added
approved
The request or addition was approved
improvement
Improvement request or addition
The loop iterators are stored in global variables. Evidently, this is bad practice. It was a temporary solution which must now be rethought. It would be better to store them in a
local
object, so the renderer doesn't affect the global object.This means that the compiler needs a heuristic to determine if a token is an iterator (e.g. not a string or property of another object, not included in another token, etc). If so, it should prepend a prefix like
local.
, which the renderer can use to refer to thelocal
object.The text was updated successfully, but these errors were encountered: