(Should have written "DSL-based" not "macro-based" On Tuesday, December 24, 2013 1:55:19 PM UTC-6, Conrad Barski wrote: > On Tuesday, December 24, 2013 5:27:12 AM UTC-6, Nikita Prokopov wrote: > > Hi David, > > > > cool work, > > > > Just wondering, why in todomvc you rely so heavily onto #js literals, and > > prefer dsl-like syntax (dom/...) instead of some declarative markup like > > hiccup? Is it because of performance reasons? > > > > Thanks! > > I'm not David, but I'm guessing "performance reasons" is the answer. The > React library relies on member functions to render html (React.DOM.div, > React.DOM.input, etc) so this maps more efficiently onto a macro-based html > rendering solution, as opposed to one based purely on EDN (like hiccup). Note > that the approach used by Om is common in the Common Lisp & Scheme worlds > (since those languages don't have clean map & vector literals like Clojure, > the hiccup approach is more awkward in those languages.) > > The #js literals can forwarded directly to the React.js library and are > therefore also very efficient.
-- -- 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.