Great post.

Regarding boolean type hinting, I believe this is down to an optimisation done 
while emitting the javascript and not by the closure compiler. There is a check 
in compiler.cljc emit* function which if the name of the function is 
cljs.core/not and it has a hint of boolean emits a javascript not `!`. 

https://github.com/clojure/clojurescript/blob/c99f65f28aa46f28167815bcef2244ef473c4844/src/main/clojure/cljs/compiler.cljc#L839

https://github.com/clojure/clojurescript/blob/c99f65f28aa46f28167815bcef2244ef473c4844/src/main/clojure/cljs/compiler.cljc#L890

[I am not an expert a clojurescript expert so i may be wrong]

-- 
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 http://groups.google.com/group/clojurescript.

Reply via email to