RE: [boost] Re: Re: I/O library status
by Paul A. Bristow other posts by this author
Jun 4 2003 9:13AM messages near this date
[boost] Re: Re: Re: I/O library status
|
[boost] Re: I/O library status
| -----Original Message-----
| From: boost-bounces@[...].org
| [mailto:boost-bounces@[...].org]On Behalf Of Ed Brey
| Sent: Tuesday, June 03, 2003 2:49 PM
| To: boost@[...].org
| Subject: [boost] Re: Re: I/O library status
|
| Beyond these are the performance concerns of course;
|
| rather than the more efficient and arguably more readable:
|
| cout <<
| "My first line" "\n"
| "My second line";
Are you sure that this is more efficient?
cout <<
"My first line" << endl <<
"My second line";
has proven LESS efficient and I suspect the flush caused by encountering \n will
have the same effect. Of course, the differences are tiny in practice.
I view the newl as much clearer. And the concept that endl actually writes the
buffered output doesn't seem too complicated.
As a non-C programmer, "\n" looks plain nasty to me :-(
Paul
Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB UK
+44 1539 561830 Mobile +44 7714 33 02 04
Mobile mailto:pabristow@[...].uk
mailto:pbristow@[...].com
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Daryle Walker
Ed Brey
Ed Brey
Paul A. Bristow
Ed Brey
Thomas Witt
Paul A. Bristow
|