String Interpolation

Imperatorn johan_forsberg_86 at hotmail.com
Sat Oct 21 16:06:14 UTC 2023


On Saturday, 21 October 2023 at 15:42:37 UTC, Commander Zot wrote:
> On Saturday, 21 October 2023 at 12:43:15 UTC, Adam D Ruppe 
> wrote:
>> On Saturday, 21 October 2023 at 12:38:52 UTC, Commander Zot 
>> wrote:
>>> can we please just have ```i"whatever ${var}"``` to return a 
>>> fully interpolated string
>>
>> No. Please discontinue this thread, we've been over this a 
>> million times, no point doing it again.
>
> you are missing the point. if ```i""``` does behave differently 
> from just ```""``` this will lead to a huge number of people 
> being confused later. they should really both be strings, or 
> i"" should not exist at all. if you want interpolated tuples 
> don't call it string interpolation and use t"" instead.
> changing code from "" to i"" should not change it's behavior.

Kinda agree that there could be multiple interpolation forms


More information about the Digitalmars-d mailing list