String Interpolation

Imperatorn johan_forsberg_86 at hotmail.com
Sat Oct 21 18:31:10 UTC 2023


On Saturday, 21 October 2023 at 18:14:55 UTC, Patrick Schluter 
wrote:
> On Saturday, 21 October 2023 at 12:38:52 UTC, Commander Zot 
> wrote:
>> [...]
>
> Interpolated strings, even if they look like it, are NOT 
> strings. They are a obfuscated or better said, conveniently 
> laid out source code.
>
> They contain inside of them, between the {} program code even 
> if it is just a variable name. Strings are strictly just data. 
> Interpolated string is a mix of CODE and data.
>
> By the very nature of what interpolated strings are it is not 
> possible to treat them as strings.

In C# an interpolated string is just a string


More information about the Digitalmars-d mailing list