Is there a way to check if a protocol exists?

For example, if I want to extend clojure.data.json protocols but only if it
is available, how would I go about it?

This way does not work at least some of the time (referenced namespace
causes a ClassNotFound exception
during compilation):

https://github.com/clojurewerkz/support/blob/master/src/clojure/clojurewerkz/support/json.clj#L18-33

Any better solutions? I'd like to avoid adding any new dependencies, if
possible.

Thank you in advance.
-- 
MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to