clojure - eval code in different namespace
问题 I'm coding something like REPL Server. Request from users evaluates in such function: (defn execute [request] (str (try (eval (read-string request)) (catch Exception e (.getLocalizedMessage e))))) Each client in separate thread. But they have the same namespace. How can I run code in dynamic created namespace ? So when new client connected, I want to create new namespace and to run client handling loop code there. Or maybe it's possible to run (eval ..) in other namespace ? Thanks. upd.