Hi --

I'm doing some development in Clojure using SLIME.  My project
involves some files which are called as scripts and the majority of
code which is in a library, probably structured in a bunch of files
corresponding to various responsibilities.

I'm trying to figure out the best way to structure my file layout.
What I have is the following:

The overall project is in .../src/clj
The library stuff is in myorg/clojure, with file1.clj, file2.clj ...
file_n.clj
There's also a lib.clj which is just the following
(ns myorg.clojure.lib)
(load "file1")
(load "file2")
...
(load "file_n")

The scripts inside start with the following:
#!/usr/bin/env clj
(use  'myorg.clojure.lib)
[...]


My workflow is editing pretty much everything in slime, although most
code should end up in the library and the scripts basically parse
arguments, do some super-local stuff and call library code.  I'm
finding this layout.. sorta works, except that redefining a def in a
library file ends up breaking clojure because of namespace issues.
Hopefully I can work around this.

Does this make sense?  Is there a best practice for this?

Any help/pointers appreciated.

Ranjan

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

Reply via email to