Hi All, I had a terrible time trying to write a convenience macro for reading from a core.async channel.
The idea was to make it easier to do the common "dispatch on first part of a message" pattern, as in: (let [[msg & args] (<! my-channel)] (case msg :msg1 (let [[a b] args] ...) :msg2 (let [[x] args] ...))) After a long struggle I came to the conclusion that there is some problem with using macros inside a go block, or at least using <! inside a macro. Is that right? Is this documented anywhere? Thanks Tom -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.