|
|
|
|
|
by lobster_johnson
3296 days ago
|
|
Re typesafe printf, I assume the compiler can produce efficient code, since the pattern matching occurs at compile time? Also, if you have an arbitrary string that isn't a constant that can be analyzed statically — for example, a string read from a config file — how do you prove to the compiler that it's a valid format-code string? |
|
it's just showing if you get through these 50 checks, by the time you get to printf the bytes will have been converted to what you need, or the program will have already errored out.