> > Question: why exactly is this type hint needed when js/goog.DEBUG is used in > an "if"? As far as I can see, js/goog.DEBUG is a boolean already. >
Short answer: We don't evaluate or parse any Javascript when compiling ClojureScript. That means we don't know about goog.DEBUG and what type it may be. CLJS is parsed and analyzed so we know a whole lot about it without actually running anything. -- 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.
