News for hackers. Stuff that matters.
Re:C++23: The Next C++ Standard by paulddraper on Wednesday July 12, 2023 @12:43PM (#36697410)
You misunderstand.

C++20 added std::format [1], similar to Python's str.format [2] (~2010).

But OP said f-strings [3] (2016) which is string interpolation, a language-level feature.

C++ does not have string interpolation.

Not massively important, but IMO quite handy for inline code, e.g. SQL parameterization.

[1] https://en.cppreference.com/w/cpp/utility/format/format

[2] https://docs.python.org/3/library/stdtypes.html#str.format

[3] https://docs.python.org/3/reference/lexical_analysis.html#f-...

There are no comments on this comment yet.