220 36920 <CAC+0CCOovuF+HGepUDQVjkSJoCbGHBNcemaUU9h_gBUPD9ns+w@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: Thu, 15 Feb 2018 11:33:14 +0000
Lines: 110
Approved: news@gmane.org
Message-ID: <CAC+0CCOovuF+HGepUDQVjkSJoCbGHBNcemaUU9h_gBUPD9ns+w@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>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="94eb2c1c00deee760c05653e97d3"
X-Trace: blaine.gmane.org 1518694282 12020 195.159.176.226 (15 Feb 2018 11:31:22 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 15 Feb 2018 11:31:22 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDCZX3WUUQFRB667SXKAKGQEAVXL5GQ@isocpp.org Thu Feb 15 12:31:17 2018
Return-path: <std-proposals+bncBDCZX3WUUQFRB667SXKAKGQEAVXL5GQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ot0-f198.google.com ([74.125.82.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDCZX3WUUQFRB667SXKAKGQEAVXL5GQ@isocpp.org>)
	id 1emHkt-0002SJ-42
	for gclcip-std-proposals@m.gmane.org; Thu, 15 Feb 2018 12:31:11 +0100
Original-Received: by mail-ot0-f198.google.com with SMTP id g9sf14465993otc.3
        for <gclcip-std-proposals@m.gmane.org>; Thu, 15 Feb 2018 03:33:17 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1518694396; cv=pass;
        d=google.com; s=arc-20160816;
        b=ua6Q+Vg6bB/05+82F87y/Kic4UmctXeUQ1akxiYQ0JypQSINA6sAwEnBXeQgXYjIrV
         qOkZ4jlN71wR7uwIVLI/xFhyl2HUVqXydqsa1oxyDiP1sJogbRFwDaQZzWfFm/Bvj5+/
         hwGcgNddq7YThtK9uyIYy1KBtUXv08BGmKs41JSG4hphG7vJzR7fj8GHBKx3cxtuZV/i
         P/W4JtfgOtJJ31m124j9SY/QddvRSyxI5yXLTVh4/wViW697insH+n2C8Z34Z6hA+0yl
         S1LI+tlzvbsj1sa/bNkm/4AK948EVGs5leU7aIIPWhPVUw8BLI4zJb/0eqlQBCI1E3fC
         dSiQ==
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=4J6mLQi1FacnMYI0b4YXO6xwqgrcPtC2nlAt9KnTWFs=;
        b=a5HqBYOLEj22Za3DUk/+3C7RTDiRrPvfLGQTLQrvU89M/dc5d9pYD0BeAQngcJNb0E
         iURKnt8/Kj7UbDNSO47YauHYIKN3BNNFNhHbV6foTKIIUN8QQ7l5MKbn51oVo+jnwmsp
         KqTgM+3Q9lKbaE3p78l4x6LP0tdErSZ567ChCZ8G7Q0tdPB+aRpmYb6XAnCdCmgMCiIW
         LdqL4EGaX35PgG5oIjSwIfSSomqUxLGO8tBxbFeuuVRJIpRH194tf5erWtLd/bfSwH/b
         1eueivLle81jqciAeywzyT7NpDoHMoNuhCN2MA0HRs87DWaQHuSa5mfBKfeKu5LS7yZO
         W9ZA==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=HmCbozhy;
       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=4J6mLQi1FacnMYI0b4YXO6xwqgrcPtC2nlAt9KnTWFs=;
        b=GhoEIvgkIUIbu1Yo8HbYIMurajgEz8HC5FRkPoCr3UeLQdeCMtDmJiUE7Ejj8NkuTD
         4h+x2frWJkHd6G4czTcwkqh1sXEucXkbQfCvnUwp1/HUh4SmJuP1fGcMiU+eSZGq7mxX
         dk4rMcAz5i++vTIdb1bJxHad72iS/aaK8UBGg9L8EcjNKuMoZLjN4/bMy4xPxWibFcgL
         Hbz4n77bzds9xbVSPAqJtlGNR+jaUGEJLuBhHbCYFhmGwsP6XkpyjWWhMCd9FRxABxVu
         s9/19tn1d4V+ZftZkk7FNtQZq0ZhV+J1Ot/ni/V4rv3QIAwflZLQrN1d24r4t5TKi++o
         8mRw==
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=4J6mLQi1FacnMYI0b4YXO6xwqgrcPtC2nlAt9KnTWFs=;
        b=DcUuxsY7qo7JOzmTaFoCP6kXBRA90FaGYSof5Vrgux4qRArbNJP9R0pbkKcGgtGtRp
         hQ4h0sz9d9yeJexd+O/m96YVTkfHQMxX4yq885IxzUaoLIFcEYwrl0rG9UXBCP/CyXg/
         d+80xeG6BFA2XC4RZtoKPkzKKFSVhIKFAIamM/zPX/si+Wfl9UpVo46Q/+v4brjMniyD
         u3IT9fWS+dy5b73B24dFtbXR64JB6U1sK3uEIY9pz4PuP88MFZdK/+k+4zV4EeA2HKoL
         uwndi6oD6h8PJGEnQRxJ5bK6VKyow55U9JyL1M9KdzZnAPVP+zMNUH8kASaz7e0/rMLB
         kSgA==
X-Gm-Message-State: APf1xPCHQmhvn5t6Qf9/JccPqA3rIT2nebnscoI8Fu1tgt7S3uM2fpkp
	rQ3EoSglLEqxcWkne/0PmV8omg==
X-Google-Smtp-Source: AH8x227Epg15sfMyX+A4X6BP5TALktsKe+tYJf2+U+NDL30N1LU+ixHG9AmXGiWzeaIG2JWzEMV/gA==
X-Received: by 10.157.70.144 with SMTP id z16mr43178ote.118.1518694396713;
        Thu, 15 Feb 2018 03:33:16 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.202.232.70 with SMTP id f67ls2258527oih.20.gmail; Thu, 15 Feb
 2018 03:33:15 -0800 (PST)
X-Received: by 10.202.205.209 with SMTP id d200mr1530427oig.253.1518694395507;
        Thu, 15 Feb 2018 03:33:15 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1518694395; cv=none;
        d=google.com; s=arc-20160816;
        b=TmbBSTGKDEr+cYu6N5uDMwODPUX4FHmSnlMYvq7zBRVmEnClfmLk832m8LaXnuYxGA
         K9ikcn99umseZX5PnTnDsXw0N1CeHAiSzEAjkTT8flUB0MYwjgJJjtrDgBFGLmHLdxmH
         oesqECyPnAgmzpxItiPr/khFz7ZYXrCqSq1++9qj2aM41gwnDKivFBlGiaqDImb7478x
         C2EBLQg7FqM2U4hLMZ+d491whqD+SmysqJtNiMA2eOOQnDMWBE9vJrBd7Yiz5F01Teqp
         Ku1p8b/OCL0HSxVdkly5Pr4bGdC7wprwfnbdUdeSec0BycGb53/6BYsVILUNjoZKbLW+
         csLQ==
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=bfXC/frXR/Y/nznbKCXZj0jzR0Gl8Yrf918nAxTWF9s=;
        b=WAQRMoEhXJFiWRh8S5Hv0tS4TcwNDyN4WqrhS4COmjkywv94qhagRsXT27g2Nqy+eM
         vLrFou+sfZYLVsbNkiTTdfeIM5lyOFNZ7EERA8SuO8McwoFdmzPwMTOBJ2ZqKxvFXc8H
         Ql4UATRpeo607btyBwj67J7GQe4yrb1UhhaJNeEcrHdoV1+EQ8k6y4XK6UU8S+7XrdQc
         bIWz75R49FfB3l9JkmzTVYBk+gsWYAFaEYC+EsSPH5Px07Tw6pOTnZQXWLKBuWHX2jSe
         xvYk65lqu0FBZlTg4aIL0FzCgQocMi0t6034jD6z836ZRewbbA7crKFcTAMoMCL9gYUc
         UQuQ==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=HmCbozhy;
       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 c50sor6779881ote.118.2018.02.15.03.33.15
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Thu, 15 Feb 2018 03:33:15 -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.0.152 with SMTP id w24mr1446054oti.67.1518694394917;
 Thu, 15 Feb 2018 03:33:14 -0800 (PST)
Original-Received: by 10.168.151.129 with HTTP; Thu, 15 Feb 2018 03:33:14 -0800 (PST)
Original-Received: by 10.168.151.129 with HTTP; Thu, 15 Feb 2018 03:33:14 -0800 (PST)
In-Reply-To: <758ab0a7-8946-43d4-b2ae-5a4acea11c20@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=HmCbozhy;       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:36920
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36920>

--94eb2c1c00deee760c05653e97d3
Content-Type: text/plain; charset="UTF-8"

If there exists a table where a field named "ID" is not unique, someone
please fire the person who made it.

On 15 Feb 2018 09:55, <olafvdspek@gmail.com> wrote:

> Op vrijdag 9 februari 2018 23:12:26 UTC+1 schreef Marcin Jaczewski:
>>
>> More I think about this more it look as great addition to language:
>> std::string a;
>> int b = 0;
>> int c = 42;
>> db.run(F"select name as {a}, age as {b} from table where id = {c}"_sql);
>>
>>
> The query could return 0, 1 or more rows. How'd that work for 0 or 2+ rows?
> I find mixing expressions (or does it only work with variables) and string
> literals to not work well most of the time.
>
> --
> 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/758ab0a7-8946-43d4-
> b2ae-5a4acea11c20%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/758ab0a7-8946-43d4-b2ae-5a4acea11c20%40isocpp.org?utm_medium=email&utm_source=footer>
> .
>

-- 
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%2B0CCOovuF%2BHGepUDQVjkSJoCbGHBNcemaUU9h_gBUPD9ns%2Bw%40mail.gmail.com.

--94eb2c1c00deee760c05653e97d3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">If there exists a table where a field named &quot;ID&quot=
; is not unique, someone please fire the person who made it.</div><div clas=
s=3D"gmail_extra"><br><div class=3D"gmail_quote">On 15 Feb 2018 09:55,  &lt=
;<a href=3D"mailto:olafvdspek@gmail.com">olafvdspek@gmail.com</a>&gt; wrote=
:<br type=3D"attribution"><blockquote class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">O=
p vrijdag 9 februari 2018 23:12:26 UTC+1 schreef Marcin Jaczewski:<blockquo=
te class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>More I think about thi=
s more it look as great addition to language:<br><div style=3D"background-c=
olor:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;bord=
er-width:1px"><code><div><span style=3D"color:#000">std</span><span style=
=3D"color:#660">::</span><span style=3D"color:#008">string</span><span styl=
e=3D"color:#000"> a</span><span style=3D"color:#660">;</span><span style=3D=
"color:#000"><br></span><span style=3D"color:#008">int</span><span style=3D=
"color:#000"> b </span><span style=3D"color:#660">=3D</span><span style=3D"=
color:#000"> </span><span style=3D"color:#066">0</span><span style=3D"color=
:#660">;</span><span style=3D"color:#000"><br></span><span style=3D"color:#=
008">int</span><span style=3D"color:#000"> c </span><span style=3D"color:#6=
60">=3D</span><span style=3D"color:#000"> </span><span style=3D"color:#066"=
>42</span><span style=3D"color:#660">;</span><span style=3D"color:#000"><br=
>db</span><span style=3D"color:#660">.</span><span style=3D"color:#000">run=
</span><span style=3D"color:#660">(</span><span style=3D"color:#000">F</spa=
n><span style=3D"color:#080">&quot;select name as {a}, age as {b} from tabl=
e where id =3D {c}&quot;</span><span style=3D"color:#000">_sql</span><span =
style=3D"color:#660">);</span><span style=3D"color:#000"><br><br></span></d=
iv></code></div></div></div></blockquote><div><br></div><div>The query coul=
d return 0, 1 or more rows. How&#39;d that work for 0 or 2+ rows?</div><div=
>I find mixing expressions (or does it only work with variables) and string=
 literals to not work well most of the time.=C2=A0</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" target=3D"_=
blank">std-proposals+unsubscribe@<wbr>isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">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/758ab0a7-8946-43d4-b2ae-5a4acea11c20%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank">=
https://groups.google.com/a/<wbr>isocpp.org/d/msgid/std-<wbr>proposals/758a=
b0a7-8946-43d4-<wbr>b2ae-5a4acea11c20%40isocpp.org</a><wbr>.<br>
</blockquote></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%2B0CCOovuF%2BHGepUDQVjkSJoCbGHBNc=
emaUU9h_gBUPD9ns%2Bw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfoote=
r">https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAC%2B0CCOo=
vuF%2BHGepUDQVjkSJoCbGHBNcemaUU9h_gBUPD9ns%2Bw%40mail.gmail.com</a>.<br />

--94eb2c1c00deee760c05653e97d3--

.
