String Interpolation

Imperatorn johan_forsberg_86 at hotmail.com
Thu Oct 26 17:38:47 UTC 2023


On Thursday, 26 October 2023 at 15:45:48 UTC, jmh530 wrote:
> On Thursday, 26 October 2023 at 10:40:34 UTC, Imperatorn wrote:
>> On Thursday, 26 October 2023 at 10:12:49 UTC, Imperatorn wrote:
>>> [...]
>>
>> Any DIP that doesn't provide a way to get a string from an 
>> interpolated string is almost useless to the users. And the 
>> language exists for the users. It doesn't exists for library 
>> writers.
>
> For reference, both Adam and Walter's versions show how it is 
> possible with `.text` or `.format`.
>

I know.

https://github.com/dlang/dmd/pull/15722#issuecomment-1774153328
> https://github.com/adamdruppe/interpolation-examples/blob/e275f110898758dbbbfaa5427a72c9a18387d065/01-basics.d#L13C25-L13C78
>
> I'm sympathetic to not putting that functionality in the 
> compiler.

And the users are not. That's all I'm saying.


More information about the Digitalmars-d mailing list