Feedback Thread: DIP 1036--Formatted String Tuple Literals--Community Review Round 1

Steven Schveighoffer schveiguy at gmail.com
Tue Sep 8 19:33:32 UTC 2020


On 9/8/20 3:21 PM, Daniel N wrote:
> On Tuesday, 8 September 2020 at 10:59:58 UTC, Mike Parker wrote:
>> This is the feedback thread for the first round of Community Review of 
>> DIP 1036, "Formatted String Tuple Literals".
>>
>> ===================================
>> **THIS IS NOT A DISCUSSION THREAD**
>>
>> Posts in this thread must adhere to the feedback thread rules outlined 
>> in the Reviewer Guidelines (and listed at the bottom of this post).
>>
>> You can find DIP 1036 here:
>>
>> https://github.com/dlang/DIPs/blob/15537f9b36afa48f1c1cd57468e8c77f8f2499dd/DIPs/DIP1036.md 
>>
>>
> 
> Correct me if I'm wrong, but this proposal is incompatible with scanf.
> 
> *) 'scanf' should be added in a section with known limitations.
> *) Can you envision a way to solve this issue, in a future more powerful 
> D, without changing the design of this DIP?
> 

Can you clarify? I believe this would work:

int i;
float f;

scanf(i"${%d}(&i) ${%f}(&f)");

It would be essentially called as scanf("%d %f", &i, &f);

However, I don't know that this is something you would typically do. 
scanf was not a target for this DIP.

-Steve


More information about the Digitalmars-d mailing list