Hi,

On 8 Sep., 21:49, Daniel Werner <daniel.d.wer...@googlemail.com>
wrote:

> Building your own hierarchy would make it safe to use unqualified
> keywords as well -- if I am not mistaken?
>
> (-> (make-hierarchy)
>   (derive :hello :anything)
>   ...)

derive works with non-qualified keywords, but the contract disallows
that:

user=> (doc derive)
-------------------------
clojure.core/derive
([tag parent] [h tag parent])
  Establishes a parent/child relationship between parent and
  tag. Parent must be a *namespace-qualified* symbol or keyword and
  child can be either a *namespace-qualified* symbol or keyword or a
  class. h must be a hierarchy obtained from make-hierarchy, if not
  supplied defaults to, and modifies, the global hierarchy.

(*Emphasis* mine)

So: no. You cannot use non-qualified keywords. Even for private
hierarchies.

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