stdio performance in tango, stdlib, and perl
Derek Parnell
derek at nomail.afraid.org
Wed Mar 21 16:15:49 PDT 2007
On Wed, 21 Mar 2007 14:36:10 -0700, Andrei Alexandrescu (See Website For
Email) wrote:
> I'll mention here that it's quite disappointing
> that Tango's idiomatic method of reading a line from the console
> (Cin.nextLine(line) unless I missed something) chose to chop the newline
> automatically. The Perl book spends half a page or so explaining why
> it's _good_ that the newline is included in the line, and I've been
> thankful for that on numerous occasions when writing Perl.
LOL ... That is odd because in nearly every program I ever write that reads
text lines, the first thing I need to do after I read in the line is to
strip off the bloody newline character.
> Please put the newline back in the line.
... but leave in the option of reading it without a newline attached.
--
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Justice for David Hicks!"
22/03/2007 10:12:54 AM
More information about the Digitalmars-d
mailing list