News for hackers. Stuff that matters.
Re:Formatting Text in C++: The Old and the New Ways by havermeyer on Saturday September 16, 2023 @04:27PM (#37538397)
Something else to consider is compile time versus runtime validation with formatting libraries, e.g. due to passing the wrong number or type of arguments. The Abseil str_format library does compile time validation for both when possible: https://abseil.io/docs/cpp/guides/format
Re:Formatting Text in C++: The Old and the New Ways by a_e_k on Saturday September 16, 2023 @06:15PM (#37539318)
{fmt} certainly does this too. It works quite nicely with the clangd language server flagging a line as an error until the format string and arguments match.