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. This procedure can be used in the optional spawn-procedure of nrepl.

It reports exceptions, ensures data is flushed and limits the print output to avoid flooding your nrepl session (so that (make-vector 10000) is safe).