OxL Reference

interface Show

Types that can be interpolated into text ("{x}") and printed; every data type has it automatically.

Example:

oxl✓ checked in CI
data Point { x: i32; y: i32 }

fn main() io {
  print("{Point{ x: 1, y: 2 }}")
}
Output
Point{x: 1, y: 2}
pub(api) interface Show

Since. 1.0.0-beta

Defined in: std/core/types.oxl:897

See also