chickadee » nrepl » nrepl-loop

nrepl-loop #!key eval read print writelnprocedure

Start a standard REPL-loop: print the prompt, read an s-expression, evaluate the expression, print the result and repeat. Exceptions are reported and data is flushed. This can be used inside the optionally supplied spawn-procedure above.