I'm trying to set up boot to let me use better-cond in the REPL. I've put this into my build.boot:
(refer-clojure :exclude '[rand rand-int struct cond])
(require '[better-cond.core :refer [cond]])
However, when I start boot repl
, I get this warning:
WARNING: cond already refers to: #'clojure.core/cond in namespace: boot.user,
being replaced by: #'better-cond.core/cond
cond
does invoke better-cond, but how do I get rid of the warning?
I don't want to get into the habit of ignoring compiler warnings.
If you would prefer to work in boot.user
, you can use ns-unmap
instead of refer-clojure
:
$ boot -d better-cond:1.0.1 repl
boot.user=> (run! #(ns-unmap *ns* %) '[rand rand-int struct cond])
boot.user=> (require '[better-cond.core :refer [cond]])
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.