220 31016 <85aefeb5-3c83-47de-a91d-3aef22d6a1ec@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nicol Bolas <jmckesson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: operator<< for std::string
Date: Tue, 21 Feb 2017 07:31:01 -0800 (PST)
Lines: 65
Approved: news@gmane.org
Message-ID: <85aefeb5-3c83-47de-a91d-3aef22d6a1ec@isocpp.org>
References: <7552b5b4-e778-46a2-a6f8-fabca5b16dc4@isocpp.org>
 <75e1c827-a2af-4dfa-9426-dc5a00a0d408@isocpp.org>
 <c1f7a833-a8fa-48d7-96c2-1ffe8ae292fc@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_6398_1608148557.1487691061604"
X-Trace: blaine.gmane.org 1487691069 6594 195.159.176.226 (21 Feb 2017 15:31:09 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 21 Feb 2017 15:31:09 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCEKFTV6ZUMBBN52WHCQKGQE6KPBGPA@isocpp.org Tue Feb 21 16:31:05 2017
Return-path: <std-proposals+bncBCEKFTV6ZUMBBN52WHCQKGQE6KPBGPA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ua0-f199.google.com ([209.85.217.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCEKFTV6ZUMBBN52WHCQKGQE6KPBGPA@isocpp.org>)
	id 1cgCP4-0000zS-NP
	for gclcip-std-proposals@m.gmane.org; Tue, 21 Feb 2017 16:30:59 +0100
Original-Received: by mail-ua0-f199.google.com with SMTP id 40sf10333069uau.1
        for <gclcip-std-proposals@m.gmane.org>; Tue, 21 Feb 2017 07:31:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=CX91Vg+7lBgKf0/Rwe4SYGJeUc0EBXPhbfNsYJzWZx4=;
        b=GRa3R4Is61UGp37llN2l0ZlBZR9jRC0OOhY5qoSmld1m3+ihNKDvuraHu/WRpYj5tE
         x33SXmA8Ort4Sik7OMclcY40Pj1o2s90BgE/wcSfNlkLBbX5g4a/GqWAbakqpiITbWka
         ogaC2/y19TnXQD96ImNibcFwM8b8mRozOrFFHGWdh+SP0CKkZ/YZfC6AzP0BQE1LC9nf
         QFe8dI7DKoF0K1fKQNHPQ+fh5RIMr9w7w5nQysDSKp9hjyh9LGxgR5oVcM1Ij0Cb91m0
         hIbVOMfg+hJZmvSQJu0vscCbSlGsdcY2TuVNev5GyWHd/tiMszjGeKoqzL2m3jaAsjaE
         0O0Q==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=CX91Vg+7lBgKf0/Rwe4SYGJeUc0EBXPhbfNsYJzWZx4=;
        b=BxT+jpY+gBNFmOMVDlvpEuB0GHTtRrM478TbvxnGTnJgTwbE5FtKRQNemjMZ0uyARt
         yHDzIRvUwgjqLEmD6r0iDPqZgz6ZoA9yT9MJqwdGRQa5q2G93DOladzasL/CPR3+Jc6u
         riruMqqaMbpNd9SIIWeekcdOmrI5RFE9r7+2zRTrEXP+NEhRKQIdYidrOBjXINkGePMj
         oJO8IpDC1Mdh8De2ifgJXkfrPJveqlmbLb6ypKKgRVDD0wehqc1geY3C/PSiPmE+oL7e
         duBT1yg+IId6lxJ7PbCl92WUmvgsewVpjl7NHypya6/sDDBHPvkhUVZGX85VvVv471PS
         w6GA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=CX91Vg+7lBgKf0/Rwe4SYGJeUc0EBXPhbfNsYJzWZx4=;
        b=kOpihA54TrYZ9aBQwxi9zfG0C0iotkaQk2+Cl6bsX5ciyUdOKvMl1KE0GkyxxJ3s0+
         jEc0jDiKYVy6O/Qj5mmcEfA2UlWSxAWXjzt2fA+7GQX/iq/sT9sFUC/z0RpeuCvBZIHC
         Daw/wbImD0XWmKmM79TU7uDWzOaEe0RgNy4X+IOKpVMfvdus8hvCtXJ1Z7XdRbz2AH8d
         9Qvs3kcwUXqBU7DocDfHICDDh6GHo27EXWSzZQpZfSgFEGqn53ES2eCAFy04DoEYss4t
         uu6Q4KpGidOHjBrB0GimqkJkXNKJhdrn5L61FQB2whQLTmaLqJfo9k8J98A33MLXCeHD
         hDIw==
X-Gm-Message-State: AMke39lBQefVxDTXjnEEijSX9PZN2+i4vNtAzTQXKZyfcVvmwz12tTIPudRYkmG0/Puj3Q==
X-Received: by 10.176.82.59 with SMTP id i56mr7276439uaa.35.1487691063685;
        Tue, 21 Feb 2017 07:31:03 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.59.194 with SMTP id k60ls11803320otc.22.gmail; Tue, 21 Feb
 2017 07:31:03 -0800 (PST)
X-Received: by 10.157.62.29 with SMTP id a29mr1733320otd.5.1487691062221;
        Tue, 21 Feb 2017 07:31:02 -0800 (PST)
In-Reply-To: <c1f7a833-a8fa-48d7-96c2-1ffe8ae292fc@isocpp.org>
X-Original-Sender: jmckesson@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:31016
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/31016>

------=_Part_6398_1608148557.1487691061604
Content-Type: multipart/alternative; 
	boundary="----=_Part_6399_1584014477.1487691061604"

------=_Part_6399_1584014477.1487691061604
Content-Type: text/plain; charset=UTF-8

On Tuesday, February 21, 2017 at 1:31:33 AM UTC-5, Victor Dyachenko wrote:
>
> Streams are NOT alternative to std::string! By many reasons.
>

Can you list some of them? Because many languages' standard libraries have 
a distinction between the every-day string type and "string builder" types. 
Java <http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html> 
and C# 
<https://msdn.microsoft.com/en-us/library/system.text.stringbuilder(v=vs.110).aspx> 
being prominent examples.

The only problem with C++'s stringstream is the cost of moving strings 
into/outof them. And that proposal would remove that cost.

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/85aefeb5-3c83-47de-a91d-3aef22d6a1ec%40isocpp.org.

------=_Part_6399_1584014477.1487691061604
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Tuesday, February 21, 2017 at 1:31:33 AM UTC-5, Victor =
Dyachenko wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin=
-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"lt=
r">Streams are NOT alternative to std::string! By many reasons.<br></div></=
blockquote><div><br>Can you list some of them? Because many languages&#39; =
standard libraries have a distinction between the every-day string type and=
 &quot;string builder&quot; types. <a href=3D"http://docs.oracle.com/javase=
/7/docs/api/java/lang/StringBuilder.html">Java</a> and <a href=3D"https://m=
sdn.microsoft.com/en-us/library/system.text.stringbuilder(v=3Dvs.110).aspx"=
>C#</a> being prominent examples.<br><br>The only problem with C++&#39;s st=
ringstream is the cost of moving strings into/outof them. And that proposal=
 would remove that cost.<br></div></div>

<p></p>

-- <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 <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/85aefeb5-3c83-47de-a91d-3aef22d6a1ec%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/85aefeb5-3c83-47de-a91d-3aef22d6a1ec=
%40isocpp.org</a>.<br />

------=_Part_6399_1584014477.1487691061604--

------=_Part_6398_1608148557.1487691061604--

.
