eliminate writeln et comp?

Nick Sabalausky a at a.a
Tue Mar 17 09:46:37 PDT 2009


"Adam D. Ruppe" <destructionator at gmail.com> wrote in message 
news:mailman.967.1237304767.22690.digitalmars-d at puremagic.com...
> On Tue, Mar 17, 2009 at 08:35:35AM -0700, Andrei Alexandrescu wrote:
>> What do you think?
>
> Eeek. That's too much typing for a trivial, common operation.
>
> I wouldn't mind writefln being implemented as a macro that is turned to
> fwritefln(stdout, ...)
>
> But, I'd be fairly annoyed having to write the extra seven characters each
> time if the short version wasn't there.
>

That's how tango and C# do it.

Stdout.formatln("Hello"); // Tango
Console.WriteLine("Hello"); // C#

My preference has always been for something shorter, but the current 
tango/C# ways have never really bothered me. You get used to it pretty 
quick. 





More information about the Digitalmars-d mailing list