News for hackers. Stuff that matters.
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by hota_mazi on Saturday September 17, 2022 @02:12PM (#32879797)
It's disappointing they would keep that odd << syntax, which has always looked weird to me.

Why not take this opportunity to streamline the calling syntax? Streams are no different than regular function calls, e.g.

cout.output("hello").output("world\n")

Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by layer8 on Saturday September 17, 2022 @02:28PM (#32879951)
You are talking about library API design, not language design. A new C++ syntax will not change how functions in the standard library are named (e.g. operator<<).
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by CyberDildonics on Saturday September 17, 2022 @02:30PM (#32879965)
That is an operator overload of a library and not built in language syntax.

Even so there is now std::format

https://en.cppreference.com/w/cpp/utility/format/format

Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by hota_mazi on Saturday September 17, 2022 @04:28PM (#32881267)
Doh, you're absolutely correct.