220 36936 <CAC+0CCMFDUop3ceSBh+39+GYq+eVRDLC4iSfCdauNc=O8A=wWQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Jake Arkinstall <jake.arkinstall@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: String interpolation
Date: Fri, 16 Feb 2018 02:52:48 +0000
Lines: 68
Approved: news@gmane.org
Message-ID: <CAC+0CCMFDUop3ceSBh+39+GYq+eVRDLC4iSfCdauNc=O8A=wWQ@mail.gmail.com>
References: <356d5835-f1bf-4699-94f5-0b2d3d0b9c0e@isocpp.org>
 <CAMD6iD9aT26x8GQHnQL+kuj3Rq8fVQSfYYFtvTnFidkf6jU_ag@mail.gmail.com>
 <25CCF885-86AD-4D51-8F5C-C46376D34DE0@gmail.com> <4890431.TR9UepuQra@tjmaciei-mobl1>
 <CALvx3hac77b6Z=EOWzKqynALi1-352OvY0dnnOer8rN6tfa01g@mail.gmail.com>
 <1cdb6300-7397-46d7-bce9-62e6e8dac40b@isocpp.org> <CAC+0CCOSZHaTA=YPSDU8Add7mE_BYcYPRCmGW8TRPtZhdqL8Hw@mail.gmail.com>
 <4bce681e-e729-4124-9322-69291fdb6678@isocpp.org> <758ab0a7-8946-43d4-b2ae-5a4acea11c20@isocpp.org>
 <CAC+0CCOovuF+HGepUDQVjkSJoCbGHBNcemaUU9h_gBUPD9ns+w@mail.gmail.com>
 <CAFQaeCBywEdaj1MD0bpyxcjXRkF1jGaCOcpk=4vHtSjEbYbcJw@mail.gmail.com>
 <01057924-056c-4ee5-a19c-e070d053b982@isocpp.org> <CAC+0CCM0SLuJk3GPA-zqb_X7z-kY_tNF1iLnOocLJwP9eErnLQ@mail.gmail.com>
 <c74fcb96-ed06-4360-bedf-e902b000b13b@isocpp.org> <3a738e91-f935-4d11-ab6b-771048b556d4@isocpp.org>
 <96860b9e-95ea-466a-825c-c371844a45e2@isocpp.org> <0caab177-cf57-cab1-a5d5-0fc65f651491@gmail.com>
 <7b1c3d63-d534-44d2-b4e9-fc0df135fff5@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="001a113e500c8ac3c305654b70d2"
X-Trace: blaine.gmane.org 1518749464 3464 195.159.176.226 (16 Feb 2018 02:51:04 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 16 Feb 2018 02:51:04 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDCZX3WUUQFRBAMPTHKAKGQE6D5T75Q@isocpp.org Fri Feb 16 03:51:00 2018
Return-path: <std-proposals+bncBDCZX3WUUQFRBAMPTHKAKGQE6D5T75Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f71.google.com ([209.85.218.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDCZX3WUUQFRBAMPTHKAKGQE6D5T75Q@isocpp.org>)
	id 1emW6r-00082A-Sx
	for gclcip-std-proposals@m.gmane.org; Fri, 16 Feb 2018 03:50:50 +0100
Original-Received: by mail-oi0-f71.google.com with SMTP id 15sf890044oip.7
        for <gclcip-std-proposals@m.gmane.org>; Thu, 15 Feb 2018 18:52:51 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1518749570; cv=pass;
        d=google.com; s=arc-20160816;
        b=xxGJK76iYJ8rtTBnhytnb8gXoFR5u6nIpLEJSm89cHeqvYfFO/yJmcxAn2l74+tPPR
         kGT8bbYkyX2Se/3l0proto2QiuOd8ZKviTIbmjfemh3GhyFwfqRb0gF4LSrpWt/q/1Tt
         e+hDddY7m1Qd0QYkEzW6iwzdbFsZa6491Gt17qYPmZvkPPtjaVt+Ijw6ZExod48nDXmv
         mGgl21jHCACp/LgbITnyhjIuUS+tCiKAXGZx3zQK8uyUu8gmp5J8Tesy+1yY+C76VAeB
         b9d3uh2tDuVZ6jH8oVagig+QR/y2AhByMILJPUcr4J7ns1kFJxWBQG84DmKWEvhtMWFX
         PhRA==
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=kR8i6TWzDnK+qqlcbI1TBEOhDUN4vq/CAr9W7Gt479g=;
        b=bfHRcbS+X45QSK1i74T9fJhkiItub28LkOJ3O4SgDSe2jpobLuSw+VjWeAHGHk68av
         8zPvt0ssbPWjKDjS8tVo6EWZjvgzFihmIHsZ3W/9Ong7Ms/8Gg2znmAIDxAs2Yy76sSU
         VuN321FBYgI3nv8gZr9WOMLUpji8cpZfWoFLimQgX2KmxjjTB5ONdynXAOmeOy1bw5zc
         jp6ofTuABdwerrmDv0zy3dW2Ti7HCbjp9JaRFrlREkMGg+xVSYnKl60MeISw91YNRCjP
         YQiaW63dPNyQMDFK8pf9aia4wTGfqMwfxKpruWwVP0qV2HzsQttmjUg/40kqXM0+IYLE
         EV4A==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=MwSPJPxU;
       spf=pass (google.com: domain of jake.arkinstall@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jake.arkinstall@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=kR8i6TWzDnK+qqlcbI1TBEOhDUN4vq/CAr9W7Gt479g=;
        b=Y4NjjLbhVGpWuZdlREUffZuhtMM7yZoQmBU3NuFhCoB/KbgVnE1c1tmyzrBzFHl1BK
         Om49bvsGWNaPTL+EuVO6YN0MlsXslM8Dsy/PfzdpicmYE+z2Tmr7ubfdeYYC0HvFzcPM
         7jZuu8Rx/w4DNGmYVwB5hiY2lczA6whf1BTBnSKB2z4aHzl0kFPTMLadF01FKLZVEmnN
         mTF5OX5wjplMi2/rSQWIKH7sqHjIAt/HavGspsgw6I/43TiqqItttM/udVyxQE3dl6KO
         1+q0P0S6BgJFDUg4wizjoTU4EPfa3tX28Lwe0vjbmnKktimkeOzPTUQysaV8C93AIqkr
         bRig==
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=kR8i6TWzDnK+qqlcbI1TBEOhDUN4vq/CAr9W7Gt479g=;
        b=eq+FJnkT+pZxQstm7M+ImbaRrL3DKlrz0IsIYW+Ntvxu4vjbMvTiUIvryYk5WdsewR
         qZzrSov94GaKlW1F4EmEZUHUk2h+hS30I/rJJ6AzraAv1g3gD3MUHPBKO3GYEIBw982Z
         hqDb6KxvcwN1OzY/s9374eV4u6xGbmfyhA5tplX7DMsALScmpD5mhbSD/YLAvHrYtMTc
         HOF1zLFYZaimo+YnAuMYdLy9kkiJUlgWtk2ZsRkzQjBYfPLePVeIGi24qMFi2rEVpnOw
         kUkwclj4pa6Y7uaraeCj8epjTLpSxY0eHx3cH9McmLicH5AHRYDrNIaW9jUaZum/BF/d
         WndQ==
X-Gm-Message-State: APf1xPD3428L7Coss4EmyxzzI2wY4c9eS53wrVdw1D5mkMMBZxMF7pKc
	hz8rMC5QNCkhUXCRX3+i7OA/FA==
X-Google-Smtp-Source: AH8x22590OzHNi0RQz17jBKgajRboo5YXJmrnB/Th59Etk5Gwe5zY63JDxFvtoOLYRIhB0EPEX+RXg==
X-Received: by 10.157.26.108 with SMTP id u41mr2243972otu.16.1518749570395;
        Thu, 15 Feb 2018 18:52:50 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.83.203 with SMTP id i11ls786164oth.16.gmail; Thu, 15 Feb
 2018 18:52:49 -0800 (PST)
X-Received: by 10.157.82.26 with SMTP id e26mr3517075oth.244.1518749569198;
        Thu, 15 Feb 2018 18:52:49 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1518749569; cv=none;
        d=google.com; s=arc-20160816;
        b=Xg7Z5ODFwon/wpq4dqV4DQCHRGLJH0I3kxjVe/jwvW/k79P9jZPfW5xBfhVKPpjjU8
         UC8kFXDTT/sWabu5ZZiAjuqx12qaQyLgrLThpBg8TKBxeFgzRUSeb1EIW1iDp2Jb+whg
         CaW5aLzZ2EdtMNSHAJRvNGtURfuXSCjJwTECca2xodCe84cOeKG2q2w/5/+ZWd6DxNF5
         rbLghugUvHary5luBaTrpfr3pB9lWp25TApG7SmtDUaYhukeUrkYh+24JM3S8lGxj3Mq
         vYRbxxrrJzfCBRbd1KHw2fG/ALc9gvmXKG8TrFhPdzSY3hO/3KIlXMahYEM1QT2tvvho
         rOkw==
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=e38UzoRHWsPxomHmkUSIOkFPnlbuzlHQrFxOvShr9NY=;
        b=tHbcruRDkI2/VFfNr3KXRPZKrCIabjiGyvMQ3VDXf42rLmJ5Fz00NCXXNP6bVj/15Q
         DaIu9s2vWJ/vewxbzMLCPFnGJpv3xMiBdpqWVS3bgeXL5dPcnMBhM7gi2fh5dU3RlHpz
         aVx74N0AdjonusA2oAGNcqh8dH5EQr+FxFlEmSMbY5sRTJZC2rf5IbRfO+pxhKoWWCfk
         5IsOmOgLpS7I29yeFC/Yq0YQoQIUPbH2BSOFC0B9aiuIFcOqz6e7m3q829HP5YrZ3su+
         QgyCodGmOubH30S0MhP5sRBZ9HizDEJfKuYkgukdzNLYcKz4xKmRtWn0CsFiV8sL3pZ4
         pg7A==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=MwSPJPxU;
       spf=pass (google.com: domain of jake.arkinstall@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jake.arkinstall@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 p5sor1132153oth.163.2018.02.15.18.52.49
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Thu, 15 Feb 2018 18:52:49 -0800 (PST)
Received-SPF: pass (google.com: domain of jake.arkinstall@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 10.157.26.66 with SMTP id u2mr3788360otu.371.1518749568646;
 Thu, 15 Feb 2018 18:52:48 -0800 (PST)
Original-Received: by 10.168.151.129 with HTTP; Thu, 15 Feb 2018 18:52:48 -0800 (PST)
Original-Received: by 10.168.151.129 with HTTP; Thu, 15 Feb 2018 18:52:48 -0800 (PST)
In-Reply-To: <7b1c3d63-d534-44d2-b4e9-fc0df135fff5@isocpp.org>
X-Original-Sender: jake.arkinstall@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=MwSPJPxU;       spf=pass
 (google.com: domain of jake.arkinstall@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=jake.arkinstall@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:36936
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36936>

--001a113e500c8ac3c305654b70d2
Content-Type: text/plain; charset="UTF-8"

On 16 Feb 2018 01:32, "Nicol Bolas" <jmckesson@gmail.com> wrote:

My feeling is that you have to pick one or the other: you either allow
arbitrary expressions or you allow constexpr string interpolation. And if
we can only have one, I'd much rather have the latter.

I want constexpr strings to be equivalent to literals as much as possible.


I agree here. We can get something along the lines of an addition operator
that acts in the same way as concatenation - so we could have your example
by performing the interpolation and concatenating the results, but in terms
of e.g. allowing some constexpr string replacement, or other more advanced
string processing, I think it just adds more implementation complexity and
it could lead to some pretty dodgy practices (though it would be a code
obfuscator's goldmine).

-- 
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/CAC%2B0CCMFDUop3ceSBh%2B39%2BGYq%2BeVRDLC4iSfCdauNc%3DO8A%3DwWQ%40mail.gmail.com.

--001a113e500c8ac3c305654b70d2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div class=3D"gmail_extra" dir=3D"auto"><div class=3D"gma=
il_quote">On 16 Feb 2018 01:32, &quot;Nicol Bolas&quot; &lt;<a href=3D"mail=
to:jmckesson@gmail.com">jmckesson@gmail.com</a>&gt; wrote:<br type=3D"attri=
bution"><blockquote class=3D"quote" style=3D"margin:0 0 0 .8ex;border-left:=
1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div class=3D"elided-text=
">My feeling is that you have to pick one or the other: you either allow=20
arbitrary expressions or you allow constexpr string interpolation. And=20
if we can only have one, I&#39;d much rather have the latter.</div><div><br=
>I want constexpr strings to be equivalent to literals as much as possible.=
</div></div></blockquote></div></div><div dir=3D"auto"><br></div><div dir=
=3D"auto">I agree here. We can get something along the lines of an addition=
 operator that acts in the same way as concatenation - so we could have you=
r example by performing the interpolation and concatenating the results, bu=
t in terms of e.g. allowing some constexpr string replacement, or other mor=
e advanced string processing, I think it just adds more implementation comp=
lexity and it could lead to some pretty dodgy practices (though it would be=
 a code obfuscator&#39;s goldmine).</div><div class=3D"gmail_extra" dir=3D"=
auto"></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/CAC%2B0CCMFDUop3ceSBh%2B39%2BGYq%2BeV=
RDLC4iSfCdauNc%3DO8A%3DwWQ%40mail.gmail.com?utm_medium=3Demail&utm_source=
=3Dfooter">https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAC=
%2B0CCMFDUop3ceSBh%2B39%2BGYq%2BeVRDLC4iSfCdauNc%3DO8A%3DwWQ%40mail.gmail.c=
om</a>.<br />

--001a113e500c8ac3c305654b70d2--

.
