Some people don't like the native approach to private vars since anyone who
wants to override it can do so anyway, so they go with a purely
conventional and unenforced approach: delineate the boundaries of API vs
internal using :internal or :impl and/or put the internal bits in an impl
namespace.  The origins of this are partly in the Joy of Clojure and partly
in Phil Hagelberg's code I believe.

On Sun, May 10, 2015 at 12:00 PM, <piastkra...@gmail.com> wrote:

> Sadly, Google seems to think I am search for "internal" when I search for
> "^:internal" so that makes it hard to find the documentation. I am curious
> about this code:
>
> ;;; Capture the standard def forms' arglists
> (def ^:internal defn-arglists (vec (:arglists (meta #'defn))))
> (def ^:internal fn-arglists (vec (:arglists (meta #'fn))))
> (def ^:internal defmulti-arglists (vec (:arglists (meta #'defmulti))))
> (def ^:internal def-arglists '[[symbol doc-string? init?]])
>
> From here:
>
>
> https://github.com/palletops/api-builder/blob/4d82355bec1ebdf7c501be71e2f3d156ae84ad2c/src/com/palletops/api_builder/impl.clj
>
> What does ^:internal mean in this context?
>
>
>
>
>
>
>
>  --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to