On Nov 13, 10:42 am, Sean Devlin <francoisdev...@gmail.com> wrote: > Rich, > I was wondering something about defprotocol. > > Here's your example: > > (defprotocol AProtocol :on AnInterface > "A doc string for AProtocol abstraction" > (bar [a b] "bar docs" :on barMethod) > (baz ([a] [a b] [a b & c]) "baz docs")) > > In this case, you provide the docs for each method after parameters. > Would the following be possible: > > (defprotocol AProtocol :on AnInterface > "A doc string for AProtocol abstraction" > (bar "bar docs" [a b] :on barMethod) > (baz "baz docs" ([a] [a b] [a b & c]))) > > This matches the rhythm of the rest of the language. >
It does. I'm still on the fence about it. What do others think? Rich -- 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