Not possible. A type/record should not implement a protocol incompletely (though the compiler won't bark at you). It can be an indication that the protocol is too large/ill-conceived.
Inspecting types is antithetical to using protocols... On Sunday, November 22, 2015 at 2:28:07 PM UTC-5, Timur wrote: > > Hi, > > A record realizes a protocol but does not implement all functions of it. > Is there a function to find out if a specific one is implemented or not? > > Simple example: > > (defprotocol IPro > (fn1 [_] ) > (fn2 [_] )) > > > (defrecord MyRecord [] > IPro > (fn1 [_] "Test1|)) > > I want to check if MyRecord realizes fn2 or not. > -- 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 --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
