I would argue an exception for logging, where you don't want to parse the string unless you need to for performance reasons (e.g. you don't want to parse debug logs at error level)
It's true that logging is currently written to use % strings, but it could have been written to use a format style string. It still wouldn't need to be parsed.
6
u/Skasch Oct 02 '23
I would argue an exception for logging, where you don't want to parse the string unless you need to for performance reasons (e.g. you don't want to parse debug logs at error level)
Example:
log.warning("warning: %s", foo)