On Tuesday, December 31, 2013 8:31:40 AM UTC+2, Timothy Pratley wrote:
> Hi,
> 
> 
> Why are these not errors?
> 
> (ns x
>   (:require [typomina :refer [listen!]]))
> 

I believe that the reason the above does not trigger an error is because 
'typomina' might be in a Javascript file somewhere. In GClosure there is not an 
1-to-1 correspondence between namespaces and files. There is no sane way to 
find a file given a namespace symbol and a file might even define several 
namespaces.


> ;; not an error, but typomina does not exist
> 
> (listen!)
> 
> ;; not an error, but listen! does not exist and will result in a runtime 
> error:
> ;; Cannot call method 'call' of undefined
> 
> (listen-up)
> 
> WARNING: Use of undeclared Var
> 
> ;; Warning but not an error
> 
> 
> Will bad things happen to me if I use obj/field instead of (.-field obj)? 
> Both seem to work, I take it the latter is preferred.
> 
> For the compiled output, do you generally .gitignore those files or source 
> control them (the diffs dominate changesets)?
> 
> Are there any good ways to know when a page can be refreshed other than 
> watching a lein cljsbuild auto terminal?
> 
> Might it be useful for a cljsbuild failure to compile to remove the target 
> file to avoid not realizing the compilation failed?
> 
> 
> 
> Regards,
> Timothy

-- 
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