Hi,

Am 28.12.2011 um 11:09 schrieb JuanManuel Gimeno Illa:

> My main concern is that when using reader macros for metadata I have to fully 
> qualify it. For instance, I must write:
> 
>  (defdatatype
>     ::Streams
>     Nil
>    (^:ml.datatypes/lazy Cons elem stream))
> 
> instead of
> 
>  (defdatatype
>     ::Streams
>     Nil
>    (^:lazy Cons elem stream))
> 
> But I suppose the benefits of namespacing outweight these inconveniences.

Please consider the alternatives outlined by Ambrose:

user=> (require '[clojure.string :as str])
nil
user=> (meta ^:foo [])
{:foo true}
user=> (meta ^::foo [])
{:user/foo true}
user=> (meta ^::str/foo [])
{:clojure.string/foo true}

Sincerely
Meikel

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

Reply via email to