Is there an argument for putting it after the argument list? :) On Fri, Nov 13, 2009 at 11:11 AM, Rich Hickey <[email protected]> wrote:
> > > On Nov 13, 10:42 am, Sean Devlin <[email protected]> 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 [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]<clojure%[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 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
