Thanks for these ideas, I will give them a try tonight and update the
adapter namespace with the changes.  If anyone knows of a more
idiomatic way I could have implemented the problem reporting
functionality that would prevent the necessity of these "hacky"
solutions, I'm all ears.

- Matt

On Jun 10, 12:26 pm, Stuart Sierra <the.stuart.sie...@gmail.com>
wrote:
> On Jun 10, 10:39 am, Stuart Halloway <stuart.hallo...@gmail.com>
> wrote:
>
> > (defn use-test-is! []
> >   (require 'mdc.common.test-expect.test-is-adapter)
> >   (def report-problem (ns-resolve 'mdc.common.test-expect.test-is-
> > adapter 'report-problem)))
>
> > This feels a little hacky, but is there a better way?
>
> It's not much less hacky, but you can do:
>
> (alter-var-root #'report-problem
>  (fn [_] mdc.common.test-expect.test-is-adapter/report-problem)
>
> The only real difference is that this will preserve var metadata.
>
> -Stuart Sierra
--~--~---------~--~----~------------~-------~--~----~
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 moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to