News for hackers. Stuff that matters.
Re:Rethinking C++: Architecture, Concepts, and Responsibility by locknitpicker on Tuesday November 25, 2025 @06:42AM (#46044867)
> 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

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.

Re:Rethinking C++: Architecture, Concepts, and Responsibility by gpderetta on Tuesday November 25, 2025 @08:00AM (#46045376)
I was referring to the Orthodox C++ article linked by parent. Of course format is an improvement on both printf and iostream.