I wish I could use D for everything

Walter Bright newshound1 at digitalmars.com
Thu Apr 30 17:13:14 PDT 2009


Steve Teale wrote:
> Sadly, in the absence of decent development tools for D, many of us
> depend on a plain old editor, and writefln() for debugging.  I notice
> that in Phobos, Walter tends to prefer printf(...) - go figure!

I tend to use printf for debugging because writefln requires a lot of 
the compiler/library to be working correctly for it to work. printf 
requires practically nothing in D to work correctly, so it is ideal for 
debugging the compiler and the library.

I use writefln pretty much exclusively when developing an app in D, for 
the straightforward reason that writefln is much simpler, safer, and 
more powerful than printf.

Some of my older D app code uses printf because writefln didn't exist 
way back.




More information about the Digitalmars-d mailing list