ClojureScript REPL must maintain eval/print pairing
Description
Currently the behavior is fine for the standard command line REPLs but pretty broken for anything else. Instead we should adopt the approach of the coming socket REPLs, we should supply a bind-err option which can be set to false to force error printing and other forms of logging to be directed to err instead of out.
There also a couple of places around the default prompt that should also be fixed.
Environment
None
Activity
Show:
David Nolen March 19, 2015 at 2:09 PM
Mike Fikes good point but I think we should surface that issue elsewhere now.
One consideration for printed output (even if directed to *err*): it needs to be modeled after print (in contrast to the default of println for :print).
Rationale: this supports evaluating forms that essentially call either print or println, without presuming a newline should be sent to *err*.
The pattern I've used in Ambly is :print-no-newline followed by :flush; perhaps with *err* semantics the :flush isn't necessary.
Currently the behavior is fine for the standard command line REPLs but pretty broken for anything else. Instead we should adopt the approach of the coming socket REPLs, we should supply a
bind-err
option which can be set tofalse
to force error printing and other forms of logging to be directed to err instead of out.There also a couple of places around the default prompt that should also be fixed.