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

Steven Schveighoffer schveiguy at
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".
>> ===================================
>> 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:
> 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.


More information about the Digitalmars-d mailing list