Indeed, if you have stdin/out, then you can use clojure.main/repl and be on your way.
If you don't, you'll need to start an nREPL server, and connect to that using an nREPL client. That actually has some advantages even if you do have stdin/out (multiple sessions, for one), but I wouldn't say that nREPL is necessarily preferable for those reasons. Use the right tool for the job. :-) - Chas On Nov 3, 2011, at 8:00 PM, Gary Trakhman wrote: > http://clojure.github.com/clojure/clojure.main-api.html#clojure.main/repl > > On Thu, Nov 3, 2011 at 7:56 PM, Gary Trakhman <gary.trakh...@gmail.com> wrote: >> For the parent's post, it might be more useful to directly have a repl >> instead of connecting to an outside one. I don't have any ideas >> on-hand about it, but i'm interested in finding out. I've been >> thinking it would be cool to have the repl for exploratory java dev >> work, even in projects that don't use clojure. >> >> On Thu, Nov 3, 2011 at 7:52 PM, Sean Corfield <seancorfi...@gmail.com> wrote: >>> On Thu, Nov 3, 2011 at 4:40 PM, Gary Trakhman <gary.trakh...@gmail.com> >>> wrote: >>>> You can even consider a live scripting facility (while the game's running) >>>> with the repl and some api to access your game's state. All of those >>>> functions are available. >>> >>> I'm a bit fuzzy on how to enable an application to be connected to >>> from a command line repl. Any good articles on that? Preferably using >>> Clojure 1.3.0 / clojure.tools.nrepl. I read the tools.nrepl doc but it >>> didn't really "click" for me... >>> -- >>> Sean A Corfield -- (904) 302-SEAN >>> An Architect's View -- http://corfield.org/ >>> World Singles, LLC. -- http://worldsingles.com/ -- 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