Files
zig/lib/std/Io
Andrew Kelley ea151030bc std.Io.Writer: implement {q} formatter
This is intended to replace the common pattern:

print("invalid foobar: '{s}': {t}", ...)

The idea is to not invent imaginary syntax. If the string contained
single quotes for example, this would be a nonsensical error message.
On the other hand with the new pattern:

print("invalid foobar: {q}: {t}", ...)

It's both easier on the eyes at the print site, and also it will allow
the user to copy paste a properly escaped string, should the quoted text
contain any odd characters, including invisible ones like null bytes.
2026-05-25 18:54:36 -07:00
..
2026-05-25 18:54:36 -07:00
2026-02-20 05:34:54 +01:00
2026-04-30 08:57:51 +01:00