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

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Jan 29 21:53:42 UTC 2021


On Fri, Jan 29, 2021 at 09:33:08PM +0000, Paul Backus via Digitalmars-d wrote:
> 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.

My experience is on the contrary: I use writefln in my own code a lot
more than writeln.  Of course, that's just another data point, and may
or may not represent actual usage.


T

-- 
Answer: Because it breaks the logical sequence of discussion. / Question: Why is top posting bad?


More information about the Digitalmars-d mailing list