"Adam D. Ruppe" <destructiona...@gmail.com> wrote in message news:mailman.967.1237304767.22690.digitalmar...@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.