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

Steven Schveighoffer schveiguy at gmail.com
Mon Feb 1 18:27:59 UTC 2021


On 2/1/21 12:19 PM, 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.

I'm saying let's make what you wrote work, instead of being a compiler 
error. Easiest way to accomplish this is to convert into a string.

-Steve


More information about the Digitalmars-d mailing list