Topic: About N3716 - A printf-like Interface for the Streams Library


Author: germandiago@gmail.com
Date: Tue, 24 Sep 2013 20:51:07 -0700 (PDT)
Raw View
------=_Part_2118_25721841.1380081067680
Content-Type: text/plain; charset=ISO-8859-1

Hello everyone,

Taking a look at this proposal, I was just wondering why we would want to
add a printf-like interface to the iostreams library.
When something has to be formatted, it must be sent to the output.

I think, in my opinion, that the correct way to do it is to format a string
and to return a string formatted that could be output later.

Why? Because this way you can format strings in memory easily. This is what python3
string formatting <http://www.diveinto.org/python3/strings.html> does AFAIK
and it has proved to
work very well in my experience using it.

Is there anything I am overlooking?

Thanks

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_2118_25721841.1380081067680
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello everyone,<div><br></div><div>Taking a look at this p=
roposal, I was just wondering why we would want to add a printf-like interf=
ace to the iostreams library.</div><div>When something has to be formatted,=
 it must be sent to the output.</div><div><br></div><div>I think, in my opi=
nion, that the correct way to do it is to format a string and to return a s=
tring formatted that could be output later.&nbsp;</div><div><br></div><div>=
Why? Because this way you can format strings in memory easily. This is what=
&nbsp;<a href=3D"http://www.diveinto.org/python3/strings.html">python3 stri=
ng formatting</a>&nbsp;does AFAIK and it has proved to</div><div>work very =
well in my experience using it.</div><div><br></div><div>Is there anything =
I am overlooking?</div><div><br></div><div>Thanks</div></div>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_2118_25721841.1380081067680--

.