String Interpolation
matheus
matheus at gmail.com
Wed Oct 25 20:22:40 UTC 2023
On Wednesday, 25 October 2023 at 20:07:32 UTC, bachmeier wrote:
> On Wednesday, 25 October 2023 at 19:15:42 UTC, duckchess wrote:
>
>> ```d
>> writeln(i!"${foo++}"); // error, cant mutate foo. need to use
>> explicit mixin(i!"${foo++}")
>> ```
>
> If someone wants to do this, they clearly don't understand the
> purpose of string interpolation. Code like that should be
> reserved for the C preprocessor.
This is what I'd call a "job retaining" code! =]
Matheus.
PS: Remembering WB presentation this year at DConf, I'd like to
know if this is case do go to his office or not.
More information about the Digitalmars-d
mailing list