News for hackers. Stuff that matters.
Re:C++23: The Next C++ Standard by Conscat on Tuesday July 11, 2023 @01:03PM (#36683891)
String interpolation is currently blocked by:

- template-function parameters (NTTPs with a function parameter syntax rather than a template parameter syntax, tentatively spelled as `void foo(template int constant){}` )

- Scalable reflection, in combination with expansion statements (likely in C++26, spelled `template for (auto& e : array) {}` ) which would allow you to write an arbitrary parser for the template string into real C++ code.

Syntax2 already supports string interpolation as a special compiler feature.

There are no comments on this comment yet.