Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2
Paul Backus
snarwin at gmail.com
Fri Jan 29 21:33:08 UTC 2021
On Friday, 29 January 2021 at 21:21:54 UTC, Walter Bright wrote:
> Much more accurately, it was optimized for all functions that
> use either printf-style formatting strings or writef-style
> formatting functions. This is because those style functions are
> overwhelmingly used in D programs and are everywhere in C code.
My impression is that `writeln` is more common than `writefln` in
D code, and a quick grep of Phobos supports that impression:
$ grep -R 'writeln' std/ | wc -l
321
$ grep -R 'writefln' std/ | wc -l
225
Obviously not scientific, but at the very least it shows that
formatted output is not the clear and unambiguous winner.
More information about the Digitalmars-d
mailing list