I'd like to introduce stch.ns. What is stch.ns? In short, it's a namespace utility for reloading modified files that's designed to be used in a REPL. Now you may be thinking we already have tools.namespace, so what's the big deal. Here are some differences:
1. Aliased namespaces are preserved upon reloading. 2. If you 'use'd a namespace previously, stch.ns attempts to reload the namespaces using 'use' instead of 'require.' 3. Only the project's src directory is checked by default. This can be modified, of course. 4. Any exceptions that are thrown while trying to reload a namespace are return in the result map under the 'exceptions' key. Each key/value pair represents the namespace and the corresponding exception message. This turns out to be really convenient, alleviates a call to clojure.repl/pst, and also allows for multiple exceptions to be caught in namespaces that don't depend on one another. All the features that make tools.namespace great, like generating a dependency graph are still there. As are some of the issues inherent in reloading namespaces (e.g., records and protocol fns). Project page can be found here: https://github.com/stch-library/ns To use, add the following as a dependency to your lein user profile in ~/.lein/profiles.clj: [stch-library/ns "0.3.0"] Enjoy. -- 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/d/optout.