I ran into this problem after creating a new namespace.
Here is the code:
(create-ns 'my-new-ns)
=> #object[clojure.lang.Namespace 0x7c7c8359 "my-new-ns"]
(in-ns 'my-new-ns)
=>
(reduce + [1 2 3])
CompilerException java.lang.RuntimeException: Unable to resolve symbol: reduce in this context, compiling:(/private/var/folders/pg/bynypsm12nx1s4gzm56mwtcr0000gn/T/form-init1425759900088902804.clj:1:1)
As you can see, the function is reducenot defined in the namespace my-new-ns.
Should I be able to create new namespaces, so what would be the best solution for this problem?
PS: In addition, I am trying to create these namespaces for my users so that they can do whatever they want in their namespaces (the idea is like a container) and create isolation between namespaces.
source
share