3 ms·
> you have to run a single time to know it works A common use case for cstdio/iostreams/std::format is logging. It's not at all uncommon to have many, many log
by usefulcat 3y ago
> you have to run a single time to know it works
A common use case for cstdio/iostreams/std::format is logging. It's not at all uncommon to have many, many log statements that are rarely executed because they're mainly for debugging and therefore disabled most of the time. There you go, lots of rarely used and even more rarely 'tested' formatting constructs.
I don't want things to start blowing up just because I enabled some logging, so I'm going to do what I can to let the compiler find as many problems as possible at compile time.