Files
zig/lib/std
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-23 11:02:56 +02:00
2026-05-25 18:38:01 -07:00
2026-05-25 18:54:36 -07:00
2026-05-25 18:54:35 -07:00
2026-04-30 08:57:51 +01:00
2026-04-30 08:57:51 +01:00
2026-04-30 08:57:51 +01:00
2026-04-30 08:57:51 +01:00
2024-08-22 08:44:08 +02:00
2026-05-17 18:08:57 +01:00
2025-12-22 10:00:35 -08:00
2025-11-22 22:42:38 +00:00
2026-05-25 18:32:36 -07:00
2026-04-30 08:57:51 +01:00
2026-03-10 10:38:50 +00:00
2026-05-03 21:42:06 +01:00
2026-05-17 18:08:57 +01:00
2026-04-30 08:57:51 +01:00
2026-05-25 18:54:34 -07:00
2025-08-28 18:30:57 -07:00
2025-07-16 10:27:39 -07:00