Writing (in-ns 'dbx)
to a file and loading it isn't changing the default namespace of the repl (using cygwin/console). The namespace is still user=>
, not dbx=>
.
vikrant[28] clj
Clojure 1.3.0
user=> (load-file "try1.clj")
#(Namespace dbx)
user=>
How can we start the REPL in a namespace defined in a script file?
Nowadays is :repl-options {:init-ns foo.bar}
.
See https://github.com/technomancy/leiningen/blob/master/sample.project.clj
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With