Built-in printing
print accepts zero or more expressions. Values are separated by one space and
a newline is appended:
print()
print(1, 2, 3)Integers print in decimal, floats with six decimals (3.140000), bool as
true or false, char and str as their text, and enums as the member
name. Arrays, maps, structs, and function values cannot be printed, and
printing a null string is a runtime error. To show a float with other
decimals, use to_str(x, digits) or an f-string such as f"{x:2}".
print is a compiler built-in that emits printf; it is not a user-defined
function and cannot be treated as a value.