"string interpolation"

Amex Amex at gmail.com
Sun Jun 9 05:24:29 UTC 2019


On Saturday, 8 June 2019 at 22:23:34 UTC, Nick Sabalausky 
(Abscissa) wrote:
> On 6/8/19 5:28 PM, Amex wrote:
>> I and many others write a code that uses string mixins simply 
>> to define a symbol based on others:
>> 
>> mixin(T~" "~id~" = "~value~");");
>> 
>> 
>> This is very ugly and it is impossible to debug properly.
>> 
>> Why not allivate this issue? Is is so common that there can be 
>> a short hand syntax that the compiler can decode naturally.
>> 
>
> There is work being done on the idea of interpolated strings:
>
> https://github.com/dlang/dmd/pull/7988

This is not what I'm talking about. Similar but different. I'm 
specifically talking about usage to replace string mixins.

I'm not really talking about string interpolation at all. It's 
symbol substitution.

I've already given examples.




More information about the Digitalmars-d mailing list