Re: Why (defn- ...) but (def ^:private? ...)

2015-05-08 Thread Stig Brautaset
Hi Herwig, On Thursday, 7 May 2015 15:36:44 UTC+1, Herwig Hochleitner wrote: 2015-05-07 16:12 GMT+02:00 Stig Brautaset sbrau...@gmail.com javascript:: Is it because the def form can also be ^:dynamic? Hm, cognitect turned it down, because basically if you go down this road, why stop

Re: Why (defn- ...) but (def ^:private? ...)

2015-05-08 Thread Leon Grapenthin
Do you have a link to the discussion? Is this really the reasoning? I find it insufficient, because there aren't many defs supporting private : def, defn, defmacro and definline if I am remembering correctly. I am kind of tired of writing def ^:private. def- would really be nice to have.

Re: Why (defn- ...) but (def ^:private? ...)

2015-05-08 Thread Andy Fingerhut
I am not aware of any JIRA ticket for this, but there could be one lurking there somewhere. Here is a link to a previous discussion about it on this group: https://groups.google.com/d/msg/clojure/r_ym-h53f1E/y1S31QXNhcAJ Andy On Fri, May 8, 2015 at 9:26 AM, Leon Grapenthin

Why (defn- ...) but (def ^:private? ...)

2015-05-07 Thread Stig Brautaset
Is it because the def form can also be ^:dynamic? At any rate, I did an attempt at my first macro to create a (def- ...) form, but it doesn't seem to work. Can you not attach metadata in a macro? (defmacro def- Why (defn- private-fn ...) but (def ^:private var ...)? [sym body] `(def

Re: Why (defn- ...) but (def ^:private? ...)

2015-05-07 Thread Herwig Hochleitner
2015-05-07 16:12 GMT+02:00 Stig Brautaset sbrauta...@gmail.com: Is it because the def form can also be ^:dynamic? Hm, cognitect turned it down, because basically if you go down this road, why stop with def- ? and before you know, you've got a core namespace full of def*- At any rate, I did an

Re: Why (defn- ...) but (def ^:private? ...)

2015-05-07 Thread Colin Yates
? (defmacro def- Why (defn- private-fn ...) but (def ^:private var ...)? [sym body] `(def ^:private ~sym ~@body)) ;; = #'user/def- user (macroexpand '(def- blah foo bar quux)) ;; = (def blah foo bar quux) Stig -- You received this message because you are subscribed to the Google Groups

Re: Why (defn- ...) but (def ^:private? ...)

2015-05-07 Thread adrian . medina
be ^:dynamic? At any rate, I did an attempt at my first macro to create a (def- ...) form, but it doesn't seem to work. Can you not attach metadata in a macro? (defmacro def- Why (defn- private-fn ...) but (def ^:private var ...)? [sym body] `(def ^:private ~sym ~@body)) ;; = #'user/def