Std.Show.Show
1 declaration
trait
ShowA type that renders itself as text for a reader.
The rendering names the type and its fields in declaration order, as the prompt renders a value: text keeps its quotes, so "1" is never mistaken for the number.
Examples
type Point = { x: Int, y: Int } derives Show
Point{x: 1, y: 2}.show() // "Point\{x: 1, y: 2\}"