220 36821 <CALvx3haDVWHLQ4MJfEjeFWoh=JduvANZ+G61M9_x8H9+bU-xpA@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Richard Hodges <hodges.r@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: String interpolation
Date: Fri, 9 Feb 2018 09:05:44 +0100
Lines: 138
Approved: news@gmane.org
Message-ID: <CALvx3haDVWHLQ4MJfEjeFWoh=JduvANZ+G61M9_x8H9+bU-xpA@mail.gmail.com>
References: <356d5835-f1bf-4699-94f5-0b2d3d0b9c0e@isocpp.org> <1731062.NdW3nXAon1@tjmaciei-mobl1>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="001a113fb94ed913420564c2fea0"
X-Trace: blaine.gmane.org 1518163448 29475 195.159.176.226 (9 Feb 2018 08:04:08 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 9 Feb 2018 08:04:08 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBD4PBM7UWAHRBWVM6XJQKGQETHUS7WA@isocpp.org Fri Feb 09 09:04:04 2018
Return-path: <std-proposals+bncBD4PBM7UWAHRBWVM6XJQKGQETHUS7WA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-io0-f198.google.com ([209.85.223.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBD4PBM7UWAHRBWVM6XJQKGQETHUS7WA@isocpp.org>)
	id 1ek3eo-00062e-4V
	for gclcip-std-proposals@m.gmane.org; Fri, 09 Feb 2018 09:03:42 +0100
Original-Received: by mail-io0-f198.google.com with SMTP id v5sf6598633iog.10
        for <gclcip-std-proposals@m.gmane.org>; Fri, 09 Feb 2018 00:05:47 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1518163547; cv=pass;
        d=google.com; s=arc-20160816;
        b=tX1HvC9pS3M7zR8FKbrAmQRNsPeiIJ1umOAO3sSBCfR46hnobNzEaD+rUuNsD0bEqW
         XEHNmARisrXt/EAcoJUIxN/R3w2xaiAjV7bvn7R7T3npcRq2h1NZKDPk53X/d3RGnHxp
         fIScecR+qhoq4DwTTSDDC/9uJX4Xc1TCo7Q+mv7w/KEh017lZR6NA6FamBfi8eqfG7cT
         ts7FqHhJSv6rOyFWyA3UihlwF/c1xu0KEYRkMT1LuIn/2WRl+jJVsGgEWyhZGI3k8+K8
         QBMR3hCrYaWZRMxtjNpmleghfa0AKx2Uv3GQEvg15g0Q5GvJvGdFf1aT5/a2hln1YbSA
         1Y1g==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=g74L9gOv/86E41EkuttFJEIgPX8Lf2swvV7fQbXGcsY=;
        b=jFS7w3za2hYAeWVDRc0LdTxeDEItkxxL+LlfJxPV1m938yI6bE/94xfydEKyDBP8P5
         plQlktAk/W4g+8yX/bkYvmlRureCgmEmdE8k2JaCdX6yrAaiCy5AJnKSkgbEmFtlG+KL
         FliFzN2Vwgc+rk8f+THhcXfS5tQJRjOVFx4QbZ6Fgbj483Vi6S/hCqsPPDS1HxyX/ZpU
         FUqN3eeMn02Y+CUYVby5bc9WkbWaZKCkYaeCa//HWkF+boMAbpPpTGO15lXETj2RCTkd
         OUIRpS8nqFvWvROhlRNSZPprsjNgYihv7dJYoLNqU5wTlAInyfTGyIYtcJPInWorzFAL
         xbsQ==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=tj+GnNvJ;
       spf=pass (google.com: domain of hodges.r@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=hodges.r@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=g74L9gOv/86E41EkuttFJEIgPX8Lf2swvV7fQbXGcsY=;
        b=awwv9Gl2dlEj6bXKlIgL01rXvjIxfTA5BO9pjwJSVVQjslzQgOxep1ppv/3TxcszIX
         jBoSJesx8aLg/33zgno1Jcsfn12wAggdChaTg38Rxb5VD+vYffYsC+kHUBUeUX6YUdCv
         8idoO2EeWFlACESDYZa8BFfHqY+cdaL1d3dtsWZKwgHclt5FewCgWjg7FOE3qt4rFI2L
         BKfBmai6qK/u/B6bLoxpK2IogyVkNnJocmjPfBt4pHPtH+RZ8HH1Ae92HN1UE8fgz/Iw
         u5V1qGBBgoc22cZpWNp4EF7/124JAuwfNibFQbMEx0SvYMpLSSHq4lVK/1PcrcyREc/d
         f2dg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=g74L9gOv/86E41EkuttFJEIgPX8Lf2swvV7fQbXGcsY=;
        b=pfDPFq5PBM0HEidDMKNc+9022+MesGV5iTjIb3B4VhHkLWmjEF1a0/LEFclBZKegTG
         4/0+7kKf8L79MfpESGiACnU0grJJtY98noIXi9BQMEpjQSjoWJT/hxyhqF7eY5FE9joQ
         Da5FNWFNA4Uy1FpdKmgsXyjdc+VcGW03prtckc5PSA/9g1oqiSNa2oO3aL3jfIT2nSAJ
         GmPrxYmrkIfr5cWsc89zOeu9sc3ewDCMnzSCvaznyNVOYWOqOuuQoiTsY4+RvwMa8AzT
         3orGtDpQkEAtYNNQOFEUh7jSHPoOkicDD3454wSk/WKwrLQ1a2T6resvdVPwk7v/Cydg
         +m3w==
X-Gm-Message-State: APf1xPAwoNB2MSFovkRr7iGmm+b2WMoZd1kE1Fnf0RjlHqAt6IODOX5U
	sDc5Xb6YulC3inyPFHtIw4XZIA==
X-Google-Smtp-Source: AH8x2249R7HD8Qof1JxSUE5R1W2Q+rdnsva7/cQQDMT8Z3chnMtNdS7TYKvncWpYJ/DLZWhL58SK2Q==
X-Received: by 10.107.69.25 with SMTP id s25mr1330327ioa.97.1518163547380;
        Fri, 09 Feb 2018 00:05:47 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.128.22 with SMTP id b22ls1335737iod.1.gmail; Fri, 09 Feb
 2018 00:05:46 -0800 (PST)
X-Received: by 10.107.41.16 with SMTP id p16mr2206740iop.85.1518163546133;
        Fri, 09 Feb 2018 00:05:46 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1518163546; cv=none;
        d=google.com; s=arc-20160816;
        b=oQGpuzK/6WzBS9Q6fxORLczUA8/QsCwebgMd8iRtgyML+1Q0UPEi50WMkbzfcKriNK
         zjeSUm3v0Ljq1k4esAQE8SdEwO2Tmq4hyoedraUuenujJ/zjkCZymP+rEsJeaPXF5aWx
         ZP7wMMXZuHUHsL5v74bbPtz6e+THwiXMbqcjetvmlQHMqmDi32HMXjkn6mRyTcsI9wUO
         +gjJmzMJfX1N6yzxXqt8sYg8p8HcKmcQPrScyVbiyINK3kT4DNzcaXoexOtT+kSDjZU6
         4q5g3BIONtC82sPP/qYTXz/Ub9bQt2+Z06GbkPM0Xsb55hixLks20JesyZdUGUr2ZMRs
         NitQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=LXNKQvE7VjJOA7mpxtKDvYMpbdsYFTXlyuOu1tMZl0A=;
        b=X/avsd7v3dPTLaegKnFiARmKgnzDw5TyPRm5EuD8jZzU/LRYOvi2RLQkpfcn44pCPD
         489Oh7Qca5YUNCA7M4hnQjqFygOWsntRuDaMieSYYWx+DBuCyQKYFSI4/4YjIw4mX5xk
         l02GIueLyC6rzRAI0NUWWtZeGUhxYK4aVi4YCXzPI75ej6HAdPJguOHTOISI29DcIYHW
         FzPFXf96yhzIZGOXin2luOI65fHkcCxCWLbBXk6LUbh6FL96NET8QeLP8YDGQHKL1pJL
         OiJ3KidIxsdv0pRYt2zwELjjEDtIRYj+daf6IM6/jB03jgY7I+3IHAovUGG+CPmEq3mF
         Kstw==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=tj+GnNvJ;
       spf=pass (google.com: domain of hodges.r@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=hodges.r@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id m12sor1060976iod.113.2018.02.09.00.05.46
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Fri, 09 Feb 2018 00:05:46 -0800 (PST)
Received-SPF: pass (google.com: domain of hodges.r@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 10.107.135.224 with SMTP id r93mr1921576ioi.248.1518163545623;
 Fri, 09 Feb 2018 00:05:45 -0800 (PST)
Original-Received: by 10.2.164.138 with HTTP; Fri, 9 Feb 2018 00:05:44 -0800 (PST)
Original-Received: by 10.2.164.138 with HTTP; Fri, 9 Feb 2018 00:05:44 -0800 (PST)
In-Reply-To: <1731062.NdW3nXAon1@tjmaciei-mobl1>
X-Original-Sender: hodges.r@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=tj+GnNvJ;       spf=pass
 (google.com: domain of hodges.r@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=hodges.r@gmail.com;       dmarc=pass (p=NONE
 sp=QUARANTINE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: 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:36821
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36821>

--001a113fb94ed913420564c2fea0
Content-Type: text/plain; charset="UTF-8"

It's a great idea. Naysayers talk of performance concerns as a result of
virtual functions. These are irrelevant.

Firstly, the cost of turning numeric values into strings far outweighs the
cost of a virtual call

Second, fixing iostream to make it more efficient is a separate concern.

The general idea is a great one, and very welcome.

I have recently taught iostream formatting to a new developer. His reaction
was incredulity that it was so hard and unintuitive. Particularly the
formatting of UDTs.

It is a travesty that in 2018, c++ remains impenetrable to beginners. It
drives people into the waiting arms of awful non-languages like java, c#
and swift.




On 9 Feb 2018 6:18 am, "Thiago Macieira" <thiago@macieira.org> wrote:

On Thursday, 8 February 2018 17:41:16 PST Jake Arkinstall wrote:
> T recipient;
> // operator<<(std::ostream&, T) defined, or we naturally get an undefined
> operator<< error later on

Considering iostreams are somewhat slow, because of all the virtuals and
multiple inheritance, how can I make your proposal work with something other
than it?

Explain how it would work with an arbitrary other class.

--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center



--
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/1731062.NdW3nXAon1%40tjmaciei-mobl1.

-- 
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/CALvx3haDVWHLQ4MJfEjeFWoh%3DJduvANZ%2BG61M9_x8H9%2BbU-xpA%40mail.gmail.com.

--001a113fb94ed913420564c2fea0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div>It&#39;s a great idea. Naysayers talk of performance=
 concerns as a result of virtual functions. These are irrelevant.</div><div=
 dir=3D"auto"><br></div><div dir=3D"auto">Firstly, the cost of turning nume=
ric values into strings far outweighs the cost of a virtual call=C2=A0</div=
><div dir=3D"auto"><br></div><div dir=3D"auto">Second, fixing iostream to m=
ake it more efficient is a separate concern.=C2=A0</div><div dir=3D"auto"><=
br></div><div dir=3D"auto">The general idea is a great one, and very welcom=
e.=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto">I have recently=
 taught iostream formatting to a new developer. His reaction was incredulit=
y that it was so hard and unintuitive. Particularly the formatting of UDTs.=
=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto"><span style=3D"fo=
nt-family:sans-serif">It is a travesty that in 2018, c++ remains impenetrab=
le to beginners. It drives people into the waiting arms of awful non-langua=
ges like java, c# and swift.=C2=A0</span></div><div dir=3D"auto"><font face=
=3D"sans-serif"><br></font></div><div dir=3D"auto"><font face=3D"sans-serif=
"><br></font></div><div dir=3D"auto"><font face=3D"sans-serif"><br></font><=
div class=3D"gmail_extra" dir=3D"auto"><br><div class=3D"gmail_quote">On 9 =
Feb 2018 6:18 am, &quot;Thiago Macieira&quot; &lt;<a href=3D"mailto:thiago@=
macieira.org">thiago@macieira.org</a>&gt; wrote:<br type=3D"attribution"><b=
lockquote class=3D"quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex"><div class=3D"quoted-text">On Thursday, 8 February 2=
018 17:41:16 PST Jake Arkinstall wrote:<br>
&gt; T recipient;<br>
&gt; // operator&lt;&lt;(std::ostream&amp;, T) defined, or we naturally get=
 an undefined<br>
&gt; operator&lt;&lt; error later on<br>
<br>
</div>Considering iostreams are somewhat slow, because of all the virtuals =
and<br>
multiple inheritance, how can I make your proposal work with something othe=
r<br>
than it?<br>
<br>
Explain how it would work with an arbitrary other class.<br>
<br>
--<br>
Thiago Macieira - thiago (AT) <a href=3D"http://macieira.info" rel=3D"noref=
errer" target=3D"_blank">macieira.info</a> - thiago (AT) <a href=3D"http://=
kde.org" rel=3D"noreferrer" target=3D"_blank">kde.org</a><br>
=C2=A0 =C2=A0Software Architect - Intel Open Source Technology Center<br>
<div class=3D"quoted-text"><br>
<br>
<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 <a href=3D"mailto:std-proposals%2Bunsubscribe@isocpp.org">std-propo=
sals+unsubscribe@<wbr>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>
</div>To view this discussion on the web visit <a href=3D"https://groups.go=
ogle.com/a/isocpp.org/d/msgid/std-proposals/1731062.NdW3nXAon1%40tjmaciei-m=
obl1" rel=3D"noreferrer" target=3D"_blank">https://groups.google.com/a/<wbr=
>isocpp.org/d/msgid/std-<wbr>proposals/1731062.NdW3nXAon1%<wbr>40tjmaciei-m=
obl1</a>.<br>
</blockquote></div><br></div></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/CALvx3haDVWHLQ4MJfEjeFWoh%3DJduvANZ%2=
BG61M9_x8H9%2BbU-xpA%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfoote=
r">https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CALvx3haDVW=
HLQ4MJfEjeFWoh%3DJduvANZ%2BG61M9_x8H9%2BbU-xpA%40mail.gmail.com</a>.<br />

--001a113fb94ed913420564c2fea0--

.
