On Dec 11, 8:15 am, blais <goo...@furius.ca> wrote: > Hi, > > Why is it that defprotocol ignores type hints, while definterface > deals with them? Both macros expand to a call to > gen-interface--defprotocol just adds a bit more to that. I don't see > why it wouldn't be possible. > > Is it just a historical artifact?
Protocols are for consumption by Clojure functions, which aren't supposed to be statically typed; interfaces are for consumption by Java classes, which are required to be statically typed. -- 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