How to load components?

19 views
Skip to first unread message

Luke VanderHart

unread,
Apr 23, 2009, 9:59:20 AM4/23/09
to Clojure Study Group Washington DC
I have a question.

What's the best way to "know" about available code without explicitly
(require)ing or (use)ing it from other code?

Would it be better to put all component *.clj files in a given
directory, and then recursively load all the files in that directory?
Or to have a separate registry file that you need to add components to
before they would be available?

Thoughts? Keep in mind that a long-term goal is to make it easy for
users to share components, without copying source files around....

Thanks,
-Luke

Serge Wroclawski

unread,
Apr 23, 2009, 11:43:20 AM4/23/09
to clojure-...@googlegroups.com
On Thu, Apr 23, 2009 at 9:59 AM, Luke VanderHart
<luke.va...@gmail.com> wrote:

> Thoughts? Keep in mind that a long-term goal is to make it easy for
> users to share components, without copying source files around....

When you say without copying source files around, what do you mean?

Wouldn't you want it to be possible to get someone else's components,
especially if they're a dependency?

- Serge

Luke VanderHart

unread,
Apr 23, 2009, 12:12:42 PM4/23/09
to Clojure Study Group Washington DC
Absolutely... I didn't meant that the files shouldn't be transferred
around, they should. But it shouldn't be the onus of the user to know
about *.clj files, I don't think. But maybe I'm wrong... Thoughts?

-Luke

On Apr 23, 11:43 am, Serge Wroclawski <emac...@gmail.com> wrote:
> On Thu, Apr 23, 2009 at 9:59 AM, Luke VanderHart
>
Reply all
Reply to author
Forward
0 new messages