On Tuesday, August 11, 2015 at 4:00:19 PM UTC-5, Eduard Bondarenko wrote:
> clj->js can be used?

You can, but #js is a reader literal and thus evaluated at compile time: the 
emitted javascript contains literal JS arrays and objects and no intermediate 
vectors or maps are created at runtime.

cljs->js is runtime: the vectors and maps are created first, then transformed 
into arrays and objects.

Prefer #js when possible.

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to