OxL Reference

fn eprint

Writes x and a newline to stderr.

Example:

oxl✓ checked in CI
fn main() io {
  eprint("diagnostics go to stderr")
  print("stdout stays clean")
}
Output
stdout stays clean
@intrinsic("eprint") pub(api) fn eprint<T>(x: &T) io

Since. 1.0.0-beta

Parameters

NameType
x&T

Effects

io

Defined in: std/core/functions.oxl:33

See also