template statistics

Steven Schveighoffer schveiguy at gmail.com
Thu Jun 4 01:42:07 UTC 2020


On 6/3/20 9:27 PM, Stanislav Blinov wrote:
> On Wednesday, 3 June 2020 at 22:21:41 UTC, Steven Schveighoffer wrote:
>> On 6/3/20 5:29 PM, Stanislav Blinov wrote:
> 
>>> There's no way around writing to a FILE*? I... hope you didn't mean 
>>> what you wrote, all things considered ;)
>>
>> Well, no way around it if you want writeln to do expected things ;)
>>
>> Unless you are suggesting that Phobos completely drop support for 
>> interleaving printf and writeln calls? If you are, I assure you Walter 
>> will not accept that.
> 
> Phobos can have whatever it has. That wasn't my point.

Ah, I get it, sorry for misunderstanding of your point. Yes, I'm in the 
same boat. I've hated how Phobos uses FILE * for its I/O.

> 
>> Not sure why you think the implementation of Phobos using C for I/O is 
>> not on-topic. It was you who suggested we could avoid it for certain 
>> calls to writeln.
> 
> Because topic is template bloat, err... statistics :) And I'm well at 
> fault for straying.
> I was speaking figuratively. A *good* writeln need not go to C - that 
> was my retort to bringing up puts in 2020. Not *the* writeln, *a* 
> writeln. At the very least it shouldn't be the default. My point is we 
> should be striving for better, not that there's anything wrong with puts 
> or C.

Agree on all that, sorry for the confusion.

-Steve


More information about the Digitalmars-d mailing list