Try requiring the namespace and then accessing its methods as below. 

(:require [x :as y])

(y/add 1 1)
=> 2



On Wednesday, March 26, 2014 3:55:30 AM UTC-4, [email protected] wrote:
> Hi Everyone!
> 
> I have written a DSL which uses many functions from my dsl-library. I don't 
> want the user to deal with namespaces, so I am prepending  "(ns dsl-user 
> (:require [...]))" at the time of compilation. The problem is that as the 
> dsl-library is growing I have to include a lot of functions from each 
> namespace.
> 
> (:require [x :refer [a b c d e f ..]])
> 
> I know that I can't use :refer :all or :use without :only. Is there any way 
> to include all functions from a namespace without mentioning their name ? 
> (except ofcourse recompiling the clojurescript source :))
> 
> Thanks & Regards

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