The state of string interpolation
Paul Backus
snarwin at gmail.com
Sat Dec 8 01:57:48 UTC 2018
On Saturday, 8 December 2018 at 00:58:43 UTC, o wrote:
> On Friday, 7 December 2018 at 23:56:48 UTC, Adam D. Ruppe wrote:
>> On Friday, 7 December 2018 at 23:46:45 UTC, o wrote:
>>> Also, see Andrei's comment:
>>> https://github.com/dlang/dmd/pull/7988#issuecomment-375760720
>>
>> He seems to also have the misunderstanding that was common
>> earlier in this thread that tuple == std.typecons.
>
> This is probably going to confuse more people, so we should
> refer to them as "sequences" in the DIP. Also, I am calling it
> "String Sequence Literals" instead of "String Interpolation"
> because it is more broad - more than just interpolation can be
> done with this.
For reference, the official documentation on dlang.org refers to
them as "compile-time sequences" [1] or "AliasSeqs" [2].
Also, as long as we're bikeshedding, my vote for the title would
be something like "String Syntax for Compile-Time Sequences", so
that there's no potential for confusion between "String (Sequence
Literals)" and "(String Sequence) Literals".
[1] https://dlang.org/articles/ctarguments.html
[2] https://dlang.org/spec/template.html#variadic-templates
More information about the Digitalmars-d
mailing list