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

Walter Bright newshound2 at digitalmars.com
Tue Feb 2 06:22:11 UTC 2021


On 1/31/2021 3:04 AM, claptrap wrote:
> Why is "working with printf" so important?

It's a canary. printf has a very simple interface, and if string interpolation 
doesn't work for simple cases, it is indicative of complexity problems.

Along with, of course, everybody uses printf and printf-style functions (dmd has 
many), and writef also uses a printf-style format.

I emphasize that #DIP1027 knows nothing about printf or its formats, other than 
having the default format be `%s`. The default can, of course, be overridden.

Again, DIP1027 KNOWS NOTHING ABOUT PRINTF OR ITS FORMATS.




More information about the Digitalmars-d mailing list