This module implements a generic $ operator to convert objects to strings.
$
proc `$`[T: object](x: T): string
Example:
type Foo = object a, b: int let x = Foo(a: 23, b: 45) assert $x == "(a: 23, b: 45)"
© 2006–2024 Andreas RumpfLicensed under the MIT License. https://nim-lang.org/docs/objectdollar.html