Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2
Max Haughton
maxhaton at gmail.com
Tue Feb 2 08:16:11 UTC 2021
On Tuesday, 2 February 2021 at 06:22:11 UTC, Walter Bright wrote:
> 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.
Cheap solution: p"Blah blah {blah}" for printf style, i"xyz" for
everything else?
More information about the Digitalmars-d
mailing list