On Sat, Jun 18, 2011 at 7:16 AM, Stuart Halloway
<stuart.hallo...@gmail.com> wrote:
> To access a private var, simply deref through the var:
> @#'some-ns/some-private-var
> This is in the coding standards doc
> (http://dev.clojure.org/display/design/Library+Coding+Standards). The doc is
> pretty short and worth reading if you haven't.

That's a bit awkward to manually type in e.g. tests.

On the other hand it's very useful if you want a macro to emit a call
to a function but don't feel that function should be public. In that
case it only has to be typed the once, in the macro definition.

-- 
Protege: What is this seething mass of parentheses?!
Master: Your father's Lisp REPL. This is the language of a true
hacker. Not as clumsy or random as C++; a language for a more
civilized age.

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