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
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.
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
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
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
?
(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
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