Just guessing from past experience in the Clojure internals: Instrumenting protocol methods it likely possible, but unlikely to be worth the effort.
There are already a bunch of places where protocol functions are different. The accepted convention is to always wrap a protocol method with a normal function to recover the benefits. The pattern usually looks like: (defprotocol P (-foo [x y z])) (defn foo [x y z] (-foo x y z)) Put your spec on foo, not -foo. This tends to be good practice anyway because you have a place to wrap global behavior around -foo. On Monday, June 6, 2016 at 12:53:55 PM UTC-7, Vjeran Marcinko wrote: > > On Sunday, June 5, 2016 at 8:23:10 PM UTC+2, red...@gmail.com wrote: >> >> http://dev.clojure.org/jira/browse/CLJ-1941 has some discussion about >> places where instrumenting won't work. >> >> > Does this mean that this is a bug or something crucial related to protocol > design is preventing this ever being implemented? > > -Vjeran > -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.