Cool!
Would it be interesting to fully qualify the vars with their
namespaces in the message ?
user=> (defprotocol Foo (foo [i] "docs") (bar [i]))
Warning: protocol #'user/Foo is overwriting method foo of protocol #'user/Bar
Warning: protocol #'user/Foo is overwriting function user/bar
Which brings another question to the table: how does 'use write with
protocols, when in a ns A I want to use protocol defined in a ns B ?
user=> (ns 'A)
A=> (defn b [])
; assume ns B defined a protocol ProtB
A=> ('use ????) ; how to "import the protocol ProtB" / "make its
methods available from ns A" ?
I guess in projects of a certain size, one would want to have some
"initialization part" of the code 'require the protocol definition
itself, as well as 'require the needed implementations of the
protocol. And, in the "application part", just 'require/refer to the
protocol without having to deal with the implementations.
How far from reality am I in my understanding ?
2009/11/13 Chouser <
cho...@gmail.com>:
> --
>
> You received this message because you are subscribed to the Google Groups "Clojure Dev" group.
> To post to this group, send email to
cloju...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/clojure-dev?hl=.
>
>
>