Hi,
On 11 Okt., 09:22, HiHeelHottie <[email protected]> wrote:
> I want to define and use a map that is private to a namespace and used
> by several functions in that namespace. Is the idiomatic way simply
> to def it within the namespace? Is there another way to hide it?
(def ^{:private true} my-map {:a :b :c :d})
Don't spend to much time on finding ways to build walls. Just use the
above approach and/or document, that the variable is private and
should be left alone. "Hiding" things is also not really necessary: a
pure :use is strongly discouraged. :use should only be used
with :only.
Sincerely
Meikel
--
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