On 02.06.2009, at 05:50, Stephen C. Gilardi wrote: > Here's a macro I've found useful for loading and running Clojure > programs from the REPL: > > (defmacro run > "Loads the specified namespace and invokes its \"main\" > function with optional args. ns-name is not evaluated." > [ns-name & args] > `(do > (require '~ns-name :reload-all) > ((ns-resolve '~ns-name '~'main) ~...@args)))
That looks like a perfect candidate for clojure.contrib.repl-utils! Konrad --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---