In clojurescript you can just "override" the necessary protocols inline in the defrecord. You will get a warning, but everything will work. You can silence the warning by using extend-type instead of an inline implementation.
In clojure, doing this will give you a compile-time error, meaning you have to reimplement all the functionality of a defrecord using deftype, even for protocols you do not actually want to override. The Potemkin library has some macros to make this kind of thing less tedious, I recommend taking a look: https://github.com/ztellman/potemkin -- 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.