denim-ui icon indicating copy to clipboard operation
denim-ui copied to clipboard

DSL: Use generated symbols for all variables so they don't crash with user variables

Open kristianhasselknippe opened this issue 4 years ago • 0 comments

let children = @[panel(), panel(), panel()]
let foo = panel():
      ...children

This breaks, because the DSL uses children as the name for the variable holding its children list while the panel is being constructed, which then shadows our own children variable.

kristianhasselknippe avatar Dec 10 '20 08:12 kristianhasselknippe