Exporting Multiple Namespaces

79 views
Skip to first unread message

JvJ

unread,
Jul 19, 2013, 4:06:50 PM7/19/13
to clo...@googlegroups.com
I'm creating a library with a lot of available functions in a lot of different namespaces, and I'd like many of them to be available to users of the library without having to specify a number of different import statements.

Is there a way to have the core namespace 'export' the other namespaces without having to place all the important functions in one monolithic core.clj?

Jonathan Fischer Friberg

unread,
Jul 19, 2013, 4:37:03 PM7/19/13
to clo...@googlegroups.com
Yes, there is https://github.com/ztellman/potemkin

Jonathan

On Fri, Jul 19, 2013 at 10:06 PM, JvJ <kfjwh...@gmail.com> wrote:
I'm creating a library with a lot of available functions in a lot of different namespaces, and I'd like many of them to be available to users of the library without having to specify a number of different import statements.

Is there a way to have the core namespace 'export' the other namespaces without having to place all the important functions in one monolithic core.clj?

--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

JvJ

unread,
Jul 19, 2013, 6:57:35 PM7/19/13
to clo...@googlegroups.com
"Facades and workarounds for things that are more difficult than they should be."  Very nice.

Jonathan Fischer Friberg

unread,
Jul 19, 2013, 7:15:15 PM7/19/13
to clo...@googlegroups.com
Hehe, yep. I mean, it's super useful for any library that needs more than one file. Which is most of them.

Jonathan

--
Reply all
Reply to author
Forward
0 new messages