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 fi

Re: Can macros be used for blunt token-pasting?

2008-10-15 Thread Tom Lynch
Ah, thanks -- it was the ability of the symbol call to generate a new sym from a string that I was missing. On Oct 16, 2:03 pm, Asbjørn Bjørnstad <[EMAIL PROTECTED]> wrote: > Why would it be? Code generation is a ideological yes-yes > in lisps. No idea. I was just vaguely aware of Strong Opini

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 ba