#Need help understanding strings and concatenation

1 messages · Page 1 of 1 (latest)

glossy nova
#

.{} not {}

#

also that won't be a valid format string, so actually std.debug.print("{s}", .{alphabet2});

obsidian terrace
#

.{} creates an anonymous structure

#

It's usually used to coerce to real structure or array, but in the case of the print/format functions, the parameter is anytype

#

Because it iterates recursively through the fields to print them