On Thu, Aug 18, 2011 at 1:39 AM, Jim Blomo <jim.bl...@gmail.com> wrote: > Hi, I'm enjoying playing with ClojureScript so far, great job guys! > I'm wondering if functions like ns-aliases and Vars like *ns* will be > implemented in future versions of ClojureScript. If not, are there > recommended workarounds or should I just hardcode the values? Thanks,
That's a good question. Namespaces in ClojureScript are mainly a compile-time concept. By the time you're running in JavaScript, real namespaces are gone and all you've got are JS objects full of object, functions, etc, so you can do some amount of "introspection" there. Along with namespaces disappearing by runtime, all aliases have been expanded so the short names won't be available there. *ns* only has meaning at compile time in Clojure, and ClojureScript is the same -- macros can use *ns*, but it's pretty much meaningless by runtime. Does that help? --Chouser -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en