On 2013-06-05 23:14, Jonathan M Davis wrote:

Given that pretty much every program is going to use std.stdio in one form or
another, I see little point in avoiding using it. And since it's an example,
it makes even less sense. I would even argue that using printf is bad
practice. writeln and writefln are properly typesafe, whereas printf is not. If
you really actually _need_ to restrict how much you're importing, then using
printf makes sense, but in general, it really doesn't.

printf is even worse in D than in C. That's because most modern C compilers will give warnings if you use printf incorrectly.

--
/Jacob Carlborg

Reply via email to