|
|
|
|
|
by joshuamorton
2270 days ago
|
|
> Python won't tell you until runtime that you have a malformatted string Neither will C++, as far as I know, or do you mean that the compiler will validate the formatting of the string literal (python has linters that will validate this too!). Hell, even with statically verifiable types, the python is shorter. |
|
With iostreams there are no format strings so there is nothing to validate. Libraries such as https://github.com/fmtlib/fmt are allow to do compile-time parsing of the string though.