3 ms·
> sorry, I can't take something that argues for "printf" in favour of anything else seriously. I think you're arguing from a position of willful ignorance. The
by locknitpicker 11mo ago
> sorry, I can't take something that argues for "printf" in favour of anything else seriously.
I think you're arguing from a position of willful ignorance. The article is clear on how it lauds C++'s std::printnl, not printf.
http://en.cppreference.com/w/cpp/io/println.html http://en.cppreference.com/w/cpp/io/println.html
Here's what the article argues:
> With std::format, C++ has gained a modern, powerful, and safe formatting system that ends the classic, error‑prone printf mechanisms. std::format is not merely convenient but fully type‑safe: the compiler checks that placeholders and data types match.
Solid remark, and the consensus on how std::printnl and std::format are an important improvement over std::cout or C's printf.
- gpderetta 11mo agoI was referring to the Orthodox C++ article linked by parent. Of course format is an improvement on both printf and iostream.