DIP 1027---String Interpolation---Community Review Round 1

Walter Bright newshound2 at digitalmars.com
Sat Dec 14 07:41:25 UTC 2019


On 12/11/2019 3:05 AM, Sebastiaan Koppe wrote:
> - I don't mind the required prefix 'i', but what about q{} strings? I probably 
> want to use interpolation there as well

The interpolation string needs to be a separate token. But I was thinking about 
i strings being concatenated with other strings if the others immediately follow it.

> - I know it is bikeshedding but since string interpolation is 99% syntax, I vote 
> for "either a single $colon for variables or ${expression} for expressions", 
> like literally every other modern language.

Have to fit in format specifiers, too.



More information about the Digitalmars-d mailing list