Juniper Public
> From: Std-Proposals <std-proposals-bounces@lists.isocpp.org <mailto:std-proposals-bounces@lists.isocpp.org>> on behalf of Chris Gary via Std-Proposals <std-proposals@lists.isocpp.org <mailto:std-proposals@lists.isocpp.org>>
> Date: Tuesday, October 24, 2023 at 7:53 PM
> Also, expanding directly to std::format would limit this to cases where only the appropriate std::string variant can be used. While it may seem inconvenient, being able to do something like this:
I was only showing examples using F"", and std::format, because I think it's easier to see how they expand/interpolate, since there are parentheses and such.
For purely string-interpolation, one would use X"", which extracts the expressions into their separate arguments.
So you could use it like this:
std::print(X"Values of {gamma} may give rise to {condition}");
FormatQString(X"Values of {gamma} may give rise to {condition}");
Which would become these:
std::print("Values of {} may give rise to {}", gamma, condition);
FormatQString("Values of {} may give rise to {}", gamma, condition);
-hadriel