On Thursday, February 25, 2016 at 9:48:36 AM UTC-8, Mike Fikes wrote:
> Yeah, cljs.js defaults to cljs.user, but generally self-host environments 
> ensure that any namespace they are issuing forms in are defined.
> 
> If you have an `in-ns` REPL special, a user could switch to an entirely 
> different namespace, and then you would pass in :ns, but you'd still need to 
> ensure that the namespace exists before evaluating forms in it. In other 
> words, cljs.user is not special in any way—it is just the default that 
> cljs.js will assume if you don't specify anything.

OK; I just wanted to be sure I'm not doing something stupidly wrong. I can have 
my code do a surreptitious eval-str() of "(ns cljs.user)" when the page loads 
to solve the problem.

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

Reply via email to