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

Steven Schveighoffer schveiguy at gmail.com
Fri Jan 29 15:20:24 UTC 2021


On 1/29/21 6:14 AM, Walter Bright wrote:
> On 1/29/2021 2:53 AM, Arafel wrote:
>> Of course one could settle on a default placeholder and then reparse 
>> the string to adapt it as needed, that's in fact what JDBC does, 
>> but... here we have the chance to do the right thing from the beginning.
> 
> I bet it could be done with a template overload of the function call. 
> This doesn't make it worse than DIP1036, which requires template 
> overloads written by the user anyway.

No it cannot (for DIP1027). Because the function that accepts a string 
format already exists. This was my main complaint of 1027 and why we 
wrote a new DIP.

-Steve


More information about the Digitalmars-d mailing list