Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2

Paul Backus snarwin at gmail.com
Mon Feb 1 17:23:35 UTC 2021


On Monday, 1 February 2021 at 17:19:09 UTC, rikki cattermole 
wrote:
> On 02/02/2021 5:41 AM, Steven Schveighoffer wrote:
>> There is literally no use case for calling mixin with the 
>> expanded tuple. If we are doing rewrites, here is one place we 
>> should always do it.
>
> enum Prop = ...;
> enum PropValue = ...;
>
> mixin(i"obj.${Prop} = PropValue;");
>
> Are you referring to that? Because that could be useful.

It doesn't work the way you think it does.

https://forum.dlang.org/post/bvdfzfbqybarvpgydewx@forum.dlang.org


More information about the Digitalmars-d mailing list