Re: Monkey-patching in Clojure

2014-02-13 Thread juan.facorro
You can also use the intern function to chamge the value of a any var in any namespace. Hope it helps -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are

Re: Monkey-patching in Clojure

2014-02-10 Thread Arnaud BOS
Thanks for the hints. I didn't found any clue while searching the Web with these keywords, maybe others will find this usefull as a reference for future searches. As for the dependency I also thought about adding it as a checkout but I didn't want to maintain it and keep it in sync with the mai

Re: Monkey-patching in Clojure

2014-02-10 Thread James Reeves
You should be able to just hop into the namespace and redef the function. (in-ns 'namespace.to.change) (def function-to-change ...) However, it's quite easy to fork a project and deploy your own version of it. You just need to change the project name in project.clj from "foo" to "org.clo