I don't get your question. For Respo, if you mean macro, there's only one macro called `defcomp` I just added. Respo itself is built with functions. So a week before, my code was all functions, like this https://github.com/Cirru/stack-editor/blob/master/src/stack_editor/comp/container.cljs#L21
On Tue, Jun 13, 2017 at 6:12 PM Dustin Getz <[email protected]> wrote: > I see very interesting. Is it technically feasible to only run the macro > from one place, so usercode is just functions? > > On Tue, Jun 13, 2017 at 12:42 PM, Jiyin Yiyong <[email protected]> > wrote: > >> I tried something like that. Actually I implemented a simple virtual DOM >> library by myself to do that. https://github.com/Respo/respo Since I'm >> not using React, I can optimize virtual DOM with `identical?` function as >> I need, and let the library reuse existing components. It's possible, but >> I'm not sure if this is what you want. >> >> >> On Saturday, June 10, 2017 at 12:02:50 AM UTC+8, Dustin Getz wrote: >>> >>> If I define a UI as just functions, no React components or Reagent >>> components, is it possible to layer render-tree pruning on top of this, or >>> index and reconcile this somehow? For example a macro that walked the tree >>> and injected React components at the right places. Memoizing each function >>> comes to mind as well. >>> >> -- >> 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 [email protected]. >> > >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/clojurescript. >> > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to a topic in the > Google Groups "ClojureScript" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/clojurescript/Fy-8QmJuv80/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/clojurescript. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/clojurescript.
