It's better to use ^:private metadata on the symbol naming the var, since there is also defmacro, defmulti, etc, which not have hyphened versions too.
суббота, 30 июня 2012 г., 17:49:36 UTC+6 пользователь Goldritter написал: > > For functions I have a "defn" macro to create public functions and a > "defn-" macro to define private functions. > For variables I have only "def". Would it make sense to also have a "def" > macro for public variables and a "def-" macro for private variables, also > variables which can be only accessed from within the namespace? > > > -- 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