Expand description
The single output module: stdout is data, stderr is diagnostics —
everywhere, no exceptions. JSON emitters match
the golden corpus’ output formats byte for byte: non-ASCII escaped as \uXXXX,
separators (", ", ": ") on the single-line form, or two-space indent
with separators (",", ": "). Normative JSON is built from ordered
pairs, never from maps (Conventions).
Enums§
- J
- Ordered JSON value — insertion-ordered objects for byte-stable output.
Functions§
- diag
- Diagnostics to stderr.
- emit
- Data to stdout. A stream that has gone away (a closed pipe, a terminal that hung up) is not a reason to stop: a run that loses its terminal still has claims to release.
- emit_
checked - Data to stdout, flushed at once, for output someone watches line by line.
falsewhen stdout has gone away (a closed pipe, as with| head): a reader that only watches has no reason to go on.