Re: Using dynamically loaded namespaces like plug-ins

2018-07-29 Thread 'Daniel de Oliveira' via Clojure
ever, we don't need to use eval > here if we require the namespace and find the var directly: > > (defn scenario-improve [] > (let [ns (symbol (str "aigympoc." aigympoc.config/scenario))] > (require ns) > (let [improve (find-var (symbol ns "improve"))]

Using dynamically loaded namespaces like plug-ins

2018-07-29 Thread 'Daniel de Oliveira' via Clojure
Hi there, I wanted to use dynamic loading of namespaces to achieve sort of a plugin structure but got kind of struck. I have a leiningen project, with the following files: -- src/aigympoc/config.clj (ns aigympoc.config) (def scenario "aigympoc.scenario1") - src/aigympoc/scenario1.clj (ns a