3 ms·
In Common Lisp, you have following streams defined in the spec: *debug-io* - bidirectional, for interactive debugging *error-output* - output, for warnings
by TeMPOraL 8y ago
In Common Lisp, you have following streams defined in the spec:
*debug-io* - bidirectional, for interactive debugging
*error-output* - output, for warnings and non-interactive error messages
*query-io* - bidirectional, for asking user questions and reading answers
*standard-input* - stdin
*standard-output* - stdout
*trace-output* - for tracing functions and timing execution
You can redefine each of them independently. I think this granularity is much better than our usual stdin/stdout/stderr split we're used to. Note e.g. the query-io being separate from stdin/stdout, which means a properly defined way for a program to handle interactivity while simultaneously having data piped into stdin and out of stdout.
It was IMO a good idea, and I wonder how the world ended up adopting just three standards streams in the end.