Re:ClojureScript, Lisp's Revenge [video]
by klibertp on Thursday September 18, 2014 @08:29AM
(#8334825)
You mean it's better than Sweet.js? http://sweetjs.org/
[ Parent
| on HN ]
Re:ClojureScript, Lisp's Revenge [video]
by nickik on Thursday September 18, 2014 @09:58AM
(#8335209)
> Sweet.js brings the hygienic macros of languages like Scheme and Rust
So it seams to clojure macro system is more powerful. That said that does not mean its better.
Re:ClojureScript, Lisp's Revenge [video]
by klibertp on Thursday September 18, 2014 @01:23PM
(#8336434)
Of course, Sweet.js provides means for breaking hygiene.
Also, Clojure macros are kind-of, a-little-bit hygienic, with their rules for identifiers resolution.
Anyway, I'd say they're rather similar in expressivity and capabilities, but I don't know both macro systems well enough to do detailed comparison.
you can break hygiene in clojure macros using classical anaphoric macros. I guess that holds for clourescript as well.
Re:ClojureScript, Lisp's Revenge [video]
by weavie on Thursday September 18, 2014 @09:40AM
(#8335109)
No, I haven't looked into sweetjs enough. I was just referring to raw javascript macros.. (ie. non existent).
Re:ClojureScript, Lisp's Revenge [video]
by klibertp on Thursday September 18, 2014 @01:15PM
(#8336373)
Right, in general languages without any means of syntactic abstraction feel contrived to me now, and after working with several macro-enabled languages I really want to have support for them in more places. JS (Sweet.js), along with Dylan and Nimrod (and others) showed that it's possible to have real macros in non-prefix languages - I wonder how long it will take the "mainstream" to become comfortable with this feature. It looks like it takes anywhere between 20 to 40 years on average for concepts to "enter mainstream", so I think we're going to have to wait quite a long time yet.