3 ms·
printf is not built into the language so the compiler doesn't know about its semantics...
by ychen306 9y ago
printf is not built into the language so the compiler doesn't know about its semantics...
- detaro 9y agoIn a totally pendantically isolated world that's true. It's not an actual hindrance to implementing something like this, as long as it can be turned off for people not using the usual stdlib.
- saltcured 9y agoThe other issue with printf and every other templating mechanism is that the format string or template itself might be computed rather than being a static literal. Also, the types of the formatted arguments may not be decided statically.