4 ms·
String interpolation is currently blocked by: - template-function parameters (NTTPs with a function parameter syntax rather than a template parameter syntax, t
by Conscat 3y ago
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. Reflection targets C++29.
Syntax2 already supports string interpolation as a special compiler feature.