printf and global namespace
Lionello Lunesu
lio at lunesu.remove.com
Wed May 3 23:47:05 PDT 2006
Anders F Björklund wrote:
> Lionello Lunesu wrote:
>
>> For easy debugging it would be better to add a void println(char[])
>> function. That's what newbies really want, not printf("%.*s\n",x) and
>> also no writefln("%s",x) to handle %* in the string correctly.
>
> Q: What was wrong with "std.stdio.writeln", as the name for it ?
> Just seemed more fitting, writef (with format) => write (without)
I just miss "print" from the old days, but you're right, write[ln] is
pretty clear :)
Maybe we can rid of the ?: operator and use ? for printing once again!
void main () { ?"hello world" }
(It's a joke :S)
> It leads people to think "oh, printf works with D strings" --> *KABOOM*
True! That's the main reason to move it AFAIC!
L.
More information about the Digitalmars-d
mailing list