Hi, On 8 Apr., 08:52, Gregg Williams <greg...@innerpaths.net> wrote:
> I assume that running clojure completely manually > from the CLI will work, but honestly, I'd like to have some support > for interactivity and/or debugging this program, which could grow over > time. Ah. Ok. It's a tooling issue. What you can do (at least with VimClojure, I suspect something similar should work with emacs) is: 1. Put your main loop into a function. And don't make it exit the program at the end, but just return from the function. 2. Start a Repl manually. 3. Start a nailgun server on its own thread (VimClojure has some convenience function for this, swank probably allows something similar) 4. run your function 5. in parallel work in your editor, send stuff for evaluation, etc. 6. maybe return from the function, if you needed to redef the function itself and not just some helper function 7. go to 4 as you wish So you have both: script development plus interactive features of the editor. Just don't use the built-in repl, because it simply doesn't have a stdin, so there is no sense in reading from it. Hope this helps. Sincerely Meikel -- 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