The state of string interpolation
Steven Schveighoffer
schveiguy at gmail.com
Fri Dec 7 22:37:50 UTC 2018
On 12/7/18 5:24 PM, o wrote:
> On Friday, 7 December 2018 at 22:12:18 UTC, Steven Schveighoffer wrote:
>> I think we are all finally on the same page (which I didn't realize we
>> weren't, sorry about that!)
>>
>> The selling of the idea is the hard part, Jonathan Marler has already
>> implemented it, and the spec is super-simple as you say.
>>
>> I think part of the confusion here is that we are calling it string
>> interpolation. It's not the same as what most languages use for string
>> interpolation. It's really something more like "string formatted alias
>> sequence" or "string interpolation tuple". That should be reflected in
>> the actual DIP.
>>
>> What's central to the utility is that it's based on string literals
>> (runtime strings will NOT work here), and therefore, has the potential
>> to be used in mixins, and in compile-time alias sequences. Sequences
>> of expressions split by strings are so common in D, it just makes
>> complete sense to me.
>
> I sent you a github invite to the contributors group for the DIP. If you
> are okay with it, could you clarify what you said in the DIP? Thanks!
Thanks, I got the invite, will respond there.
-Steve
More information about the Digitalmars-d
mailing list