On Nov 3, 6:32 am, ka <sancha...@gmail.com> wrote: > 1. How to combine protocols?
Just define types that extend all the protocols. > On a related note if I have a protocol P how can I create a protocol > with is a union of P and java.lang.Comparable ? You can't. But you can define a type that extends both P and Comparable. > 2. Does it make sense to have "static" fns as part of Clojure > protocols? No. These are just ordinary functions. Protocols provide just one thing: polymorphic functions. They are not intended to provide "type" or hierarchy like Java classes / interfaces. -S -- 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