Re:Faster, Better DOM manipulation with Dommy and ClojureScript
by swannodette on Monday April 29, 2013 @03:26PM
(#5628118)
Wait so does sweet.js support arbitrary JS execution in macros now?
[ Parent
| on HN ]
Re:Faster, Better DOM manipulation with Dommy and ClojureScript
by jlongster on Monday April 29, 2013 @03:32PM
(#5628158)
Not yet, but it's theoretically possibly with all the groundwork that's already been done. See https://github.com/mozilla/sweet.js/issues/12
So I should have said syntax-rules (for now). My bad!
Re:Faster, Better DOM manipulation with Dommy and ClojureScript
by swannodette on Monday April 29, 2013 @04:24PM
(#5628449)
Seems like you would still need to provide something like syntax objects and a special API to manipulate them?
Re:Faster, Better DOM manipulation with Dommy and ClojureScript
by jlongster on Monday April 29, 2013 @05:01PM
(#5628733)
This involves a longer discussion, and I'm not sure what Tim is thinking along those lines. Suffice to say, Clojure's macros are always going to be the best, but I have pretty high hopes that you can get 95% of the way with sweet.js. :)