I've been staring at this function for 20 minutes now
(name-with-attributes)...I must be totally stupid but even though I 've
understood what it does I can't figure out how to use it. Does anyone
have an example usage? Let's suppose I want to define a DEFN macro that
behaves exactly like defn...how would that go? I'm struggling to find
examples of this on the web. I had previously resorted to my own
solution but this certainly looks nicer...
thanks in advance :)
Jim
On 03/09/13 18:51, Alex Baranosky wrote:
https://github.com/clojure/tools.macro/blob/master/src/main/clojure/clojure/tools/macro.clj#L275
??
On Tue, Sep 3, 2013 at 9:01 AM, Mark <markaddle...@gmail.com
<mailto:markaddle...@gmail.com>> wrote:
I find the vast majority of the time I'm tempted to write a macro
(yeah, yeah, I know the first rule of macro club), is to defn-like
things. Writing a defn-like macro to handle all the stuff defn
does is pretty tough so I end up writing a barebones thing that
doesn't support doc-string, doesn't support multiple arities, and
doesn't support metadata. I'm wondering, has anyone written a
defdefnmacro macro?
--
--
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
<mailto: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
<mailto:clojure%2bunsubscr...@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
<mailto:clojure%2bunsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.
--
--
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/groups/opt_out.
--
--
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/groups/opt_out.