Just another example of missing string interpolation

Commander Zot no at no.no
Sat Oct 14 11:31:53 UTC 2023


On Saturday, 14 October 2023 at 06:25:15 UTC, Imperatorn wrote:
> On Friday, 13 October 2023 at 18:24:08 UTC, Adam D Ruppe wrote:
>> On Friday, 13 October 2023 at 17:31:29 UTC, bachmeier wrote:
>>> I don't know, but I also don't know why I would want to, 
>>> because DIP 1027 was not accepted.
>>
>> dip 1027 was utter trash, but there's future good dips that 
>> would easily solve these things. pity D's leadership is so 
>> clueless and obstinate.
>
> We just want to be able to do
>
> string s = "Hello {name}, you are {age} years old and have 
> {money - 42} dollars in the bank";
>
> Is it too much to ask? 😭

yes. this would break existing code.


More information about the Digitalmars-d mailing list