Configure bindings in script properties
Opened this issue · 0 comments
marceltaeumel commented
The user might want to keep state across script (or block) executions. Script properties might be a good place to configure such (persistent) bindings:
{
[:num |
counter := (counter ifNil: [0]) + 1.
num * num] -> { #bindings -> #(counter) }
} asScript.
Maybe also store the initialization value in those configurations:
{
[:num |
counter := counter + 1.
num * num] -> { #bindings -> { #counter -> 0 } }
} asScript.