[OT] C# can do all the interpolated strings now

deadalnix deadalnix at gmail.com
Thu Dec 9 16:13:22 UTC 2021


On Thursday, 9 December 2021 at 12:43:31 UTC, Adam D Ruppe wrote:
> On Thursday, 9 December 2021 at 10:43:07 UTC, deadalnix wrote:
>> So I read the proposal for string interpolation in D, which I 
>> understand to be this one: 
>> https://github.com/John-Colvin/YAIDIP
>>
>> The immediate thing that stroke me is the shell example. The 
>> proposed exemple is simply terrible code as it allows for 
>> shell injection.
>
> You say you read it, then say something that is blatantly false 
> about it.
>
> This dip does NOT produce strings. It produces argument lists. 
> The receiving function knows what was part of the string 
> literal and what were arguments and can process them 
> accordingly.

I see. I misunderstood that part, so scratch that.

It's not as bad as I thought, but it definitively feel hacky. It 
is unclear to me this is worth the complexity.


More information about the Digitalmars-d mailing list