String Interpolation

Imperatorn johan_forsberg_86 at hotmail.com
Mon Oct 30 13:06:03 UTC 2023


On Monday, 30 October 2023 at 12:54:05 UTC, IGotD- wrote:
> On Monday, 30 October 2023 at 11:47:23 UTC, Patrick Schluter 
> wrote:
>> On Friday, 27 October 2023 at 14:19:01 UTC, Hors 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

> I'm not sure if you are joking. Most people here understand 
> that there is boilerplate code under interpolated strings. What 
> many didn't like was the clumsy syntax in order to create a 
> string from an interpolated string.

It's close to Halloween, so I think it might be that!

I have proposed having both i and s, where s could to 
.text/.format for you basically.

It's reasonable, hygenic, expected and familiar. I don't have an 
issue with i"" not being a string, but it would be nice to also 
have s"" which would be a string.


More information about the Digitalmars-d mailing list