Hi,

I've been using clojure for a few months now, but I've tried to avoid 
writing my own macros in production code, because of the general warnings 
I've heard about misusing their power and the challenges I've run into with 
debugging them. 

I was looking through the core.async code, and I noticed that the go-loop 
macro is almost trivial (as far as I understand)[1]. I was wondering if 
people had advice on when to write these sorts of macros vs. when to just 
use the trivial expansion in the code? (Or alternatively, what am I missing 
in this macro definition?)

(defmacro go-loop
  "Like (go (loop ...))"
  [bindings & body]
  `(go (loop ~bindings ~@body)))


Thanks in advance,
Alejandro

[1]: 
https://github.com/clojure/core.async/blame/fe8103da637f2475e7fce5e9675326c7450c4399/src/main/clojure/clojure/core/async.clj#L446


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

Reply via email to