chickadee » tcprepl » tcprepl-loop

tcprepl-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 tcprepl.

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