On 2/17/26 18:21, Jon Perryman wrote:
...C's motto, why bother doing something once in the compiler when you can do it millions of times at run time. Consider the highly inefficient PRINTF where the first argument is parsed every time it executes instead of being parsed at compile time. C macros are an embarrassment because they show how little the industry understands the power of a true macro language. ...
gcc warns me when format string placeholders are inconsistent with remaining argument types. Clearly it does a parse and could cache generated code rather than doing it millions of times at run time.
It's unfortunate history that the type of "..." is char * rather than const char *. -- gil
