Fork me on GitHub
Dmitrii Pisarenko16:11:26

Hello! How can I import Google Closure into a Leiningen project? I am trying to use it in this I guess that in order to be able to use it, I need it to add it dependencies in

:dependencies [[org.clojure/clojure "1.10.0"]
                 [org.clojure/clojurescript "1.10.773"]
                 [org.clojure/core.async  "0.4.500"]
                 [reagent "1.1.0"]



Closure library should already be there because it is one of clojurescript dependency. You can check it yourself via lein deps :tree


I created a multimethod, then put #p in it for debugging ( All worked well, the extra debug statements got printed. Then I redefined the multimethod and its defmethods, removing the #p debug macros, and evaluated the new code in my REPL. The debug statements are still getting printed, like the new definitions didn't take. Is there any obvious reason this might be happening? Edit: I see that refreshing with tools-ns/refresh does update the definitions as I wanted. Does re-evaluating the code in my REPL not update definitions the same way?


defmulti acts like defonce

👍 1

Ah, you gotta use ns-unmap to redefine.. I see.


Or you can (def multi-name nil) above (defmulti multi-name ..) to force a redefinition.

🚀 1