Re: Om design query

2015-03-05 Thread Tom Lynch
One workable possibility: * init a core.async channel in the container * pass the channel from the container into each child component at build time using :opts or :state * send the discovered size of each child component, with identifying data, as a channel message during IDidMount I don't

Can macros be used for blunt token-pasting?

2008-10-15 Thread Tom Lynch
Hi all, I have a naive question regarding Clojure macros. As someone new to Lisp-style macros, can I use the system to generate new names using substitution / token-pasting? Conceptually something like (defmacro paste-tokens [first second] `(def ~first~second [])) so that (paste-tokens foo