Do protocols respect namespace rewriting? For instance:

We define a protocol in a namespace:

(ns a)

(defprotocol P
   (p [this]))

(defn g[] ....)

This works:

(ns b


On 6 abr, 00:02, Stuart Sierra <[email protected]> wrote:
> You can omit clojure.core/first from your namespace like this:
>
> (ns your.namespace
>   (:refer-clojure :exclude (first)))
>
> Users of your library could do the same, and also `(:use your.namespace)` to
> have access to your alternate definition of `first`.
>
> -Stuart Sierra
> clojure.com

-- 
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

Reply via email to