Just to pile on with Alan here: defn- is the oddball here, a vestige of a time when metadata on vars was more cumbersome and less common. Adding a def- would cover one very particular case; to make the point rhetorically, what def* form would be required to produce (for example):
(def ^:private ^:dynamic foo …) I'm guessing we haven't seen the last of the ^:bar sort of var metadata. - Chas On Sep 18, 2011, at 3:10 AM, Alan Malloy wrote: > I would rather see defn- removed, than add any more foo- functions. If > there are any more function "attributes" we want to tag things with > (say, automatically memoized?) that would be 2^N new "convenient" > definition forms, in an already-packed clojure.core namespace. And > it's not hard at all to (let [foo-const 1] (defn foofn [x] ...) (defn > more-foo [y z] ...)), or use ^:private if you really want a private > global. > > On Sep 17, 11:59 pm, Mark Engelberg <[email protected]> wrote: >> Count me among those who would like to see at least def- added to core, and >> possibly private versions of the other types of def as well. > > -- > 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 -- 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
