> > > My question is, is this necessary? If it's on the classpath, why must I > specifically tell it what namespaces I'm going to use? [...] >
The ClojureScript compiler looks for *.cljs files to compile as ClojureScript. Hence, at a minimum, the *.clj files that you want to also use from ClojureScript need to be copied (or perhaps symlinked, but that's not what lein-cljsbuild does) to *.cljs files. A list of namespaces to copy is necessary because not all valid Clojure code is valid ClojureScript code. There are some fairly substantial differences, and trying to interpret certain Clojure forms as ClojureScript will cause compiler crashes. [...] This can't scale well if I need to use dozens of namespaces, some of > which will reference other namespaces and etc. The standard solution here is to just organize all the crossover code into one namespace. For instance, if you have mycrossover.foo, mycrossover.bar, and mycrossover.bar.baz namespaces, you can use them all with :crossovers [mycrossover]. If you don't like the way crossovers work, you might want to look into cljx: https://github.com/lynaghk/cljx . -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.