Feedback Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2
Atila Neves
atila.neves at gmail.com
Wed Jan 27 12:09:59 UTC 2021
On Wednesday, 27 January 2021 at 10:33:53 UTC, Mike Parker wrote:
> This is the feedback thread for the second round of Community
> Review of DIP 1036, "String Interpolation Tuple Literals".
>
> [...]
I thought "the library" was confusing. I guess Phobos is what's
meant? How would that work without an import? Shouldn't it be
"the runtime" instead?
The DIP says "// auto variables cannot be assigned to a
interpolation sequence" but earlier on there's this:
auto msg1 = i"Hello, ${name}, this is your
${visits}${post(visits)} time visiting";
auto msg2 = ir"Hello, ${name}, this is your
${visits}${post(visits)} time visiting";
auto msg3 = i`Hello, ${name}, this is your
${visits}${post(visits)} time visiting`;
auto msg3 = q{Hello, ${name}, this is your
${visits}${post(visits)} time visiting};
I'm guessing msg3 was supposed to be `iq{...}`?
More information about the Digitalmars-d
mailing list