Closed tizoc closed 7 years ago
Does *hush*
disable all output or just load
/eval
output?
One could easily want to run a Shen program suppressing only the output from load
/eval
and still see what output
/print
write.
It disables everything except pr
. It is not well designed, it is too aggressive and was introduced by Mark a while ago just as a quick solution to a request made by Ramil to disable reporting output from the runtime. I don't like it, but It is something that is there as a quick workaround and that is part of the system already (it is even documented in shendoc).
I don't think it is very useful in its current form, but maybe we could change its meaning in the kernel to something more useful (basically your PR here https://github.com/Shen-Language/shen-sources/pull/42 but using the *hush*
variable instead of a new echo
mode).
A bit unsure about this one, but may help users that want to write scripts until we have a proper non-interactive execution mode.