Let's say I want to run SCI script multiple times, and in the context of the script user may define some vars, what is the proper way to preserve those vars between invocations?
Make a context
(def ctx (sci/init {}))
(sci/eval-string* ctx "(def x 1)")
(sci/eval-string* ctx "x") ;;=> 1Thank you! Also, what's the best way to introspect a usage of the namespaces? For example I want to analyze SCI script and detect how often a var from some provided namespace is used? Probably some standard Clojure tooling like reader?
maybe clj-kondo? https://github.com/clj-kondo/clj-kondo/tree/master/analysis