220 20524 <CAB+4KHJhkEy-wrYViq6PAqbPFJ0m-XnohXai2gN9Z_x_Gw6T6A@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Andrew Tomazos <andrewtomazos@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Rough Draft Proposal of Interpolated String Literals
Date: Sun, 20 Sep 2015 16:11:58 +0200
Lines: 94
Approved: news@gmane.org
Message-ID: <CAB+4KHJhkEy-wrYViq6PAqbPFJ0m-XnohXai2gN9Z_x_Gw6T6A@mail.gmail.com>
References: <CAB+4KHKxwEPXSFScU-FjeUL=yQFZWGfm6uk5fbh1+9bfScL_2Q@mail.gmail.com>
	<55FC8A6B.1070100@gmail.com>
	<650f78b0-289e-4880-9c03-8615b25360ec@isocpp.org>
	<CAB+4KHKU-rA6Os77FLT4Vm2CrPKzMiMpACk2LrGq5r0Khkp9Bg@mail.gmail.com>
	<CAKiZDp25trmzu6JewO8ieQ1yzDdE2s5cQdkTFz3VnBxwMMe6zA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=047d7b874e5014669305202e5935
X-Trace: ger.gmane.org 1442758326 9793 80.91.229.3 (20 Sep 2015 14:12:06 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 20 Sep 2015 14:12:06 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBD5KHQXXWYPRBL757KXQKGQEUKRASYQ@isocpp.org Sun Sep 20 16:12:01 2015
Return-path: <std-proposals+bncBD5KHQXXWYPRBL757KXQKGQEUKRASYQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lb0-f198.google.com ([209.85.217.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBD5KHQXXWYPRBL757KXQKGQEUKRASYQ@isocpp.org>)
	id 1ZdfLU-0000s5-Os
	for gclcip-std-proposals@m.gmane.org; Sun, 20 Sep 2015 16:12:00 +0200
Original-Received: by lbcao8 with SMTP id ao8sf30880851lbc.1
        for <gclcip-std-proposals@m.gmane.org>; Sun, 20 Sep 2015 07:12:00 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:content-type: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=UIBTx+BVDw0K5GJ7TgndaGdM44PhzFRUnX/lsWsltNM=;
        b=ZlNPYUvGpaSVylyh37KfAzKHbX8aPhWZlnnXN65z2meW8T1JflxAgUXwIGWFFxHUFz
         nUkjkPE4iB6zdYaHvaD0OSV8myoCGkHIHTZKPy0K5XsaoXXfCEyYmh/lrtgPFptLhqDq
         LRf+fnHOPAAzUwfBNhwavKIypQNFUYmC8O7lVVdohQZw9bYoCYriZ3UookxvlTOreMSs
         Gf1OOvkz2LecczAqdV7EtvMD1ehhtnx6FCGlvrml4uaySmEC3U6GDO/ECoPx6GuvzAu6
         nlhhxMQ1gbpvPkzdhrykxE+rMcl2hOv5xtCLPepIBFbZSOEXB1OzPVxvpoKXhvKcIlsS
         ymIA==
X-Gm-Message-State: ALoCoQm3s/+4VvAZGe8EZnvWJ5XItEjwnspjZGL054QSH/12BS9ucA8hYMdVChTpqnbMRBH/gUpj
X-Received: by 10.112.26.212 with SMTP id n20mr2473769lbg.2.1442758320215;
        Sun, 20 Sep 2015 07:12:00 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.181.29.103 with SMTP id jv7ls411347wid.16.gmail; Sun, 20 Sep
 2015 07:11:59 -0700 (PDT)
X-Received: by 10.194.250.40 with SMTP id yz8mr20595948wjc.37.1442758319137;
        Sun, 20 Sep 2015 07:11:59 -0700 (PDT)
Original-Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com. [2a00:1450:400c:c05::231])
        by mx.google.com with ESMTPS id dc7si9060332wjc.14.2015.09.20.07.11.59
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sun, 20 Sep 2015 07:11:59 -0700 (PDT)
Received-SPF: pass (google.com: domain of andrewtomazos@gmail.com designates 2a00:1450:400c:c05::231 as permitted sender) client-ip=2a00:1450:400c:c05::231;
Original-Received: by wicfx3 with SMTP id fx3so114857486wic.1
        for <std-proposals@isocpp.org>; Sun, 20 Sep 2015 07:11:58 -0700 (PDT)
X-Received: by 10.195.11.3 with SMTP id ee3mr17680146wjd.89.1442758318644;
 Sun, 20 Sep 2015 07:11:58 -0700 (PDT)
Original-Received: by 10.28.73.137 with HTTP; Sun, 20 Sep 2015 07:11:58 -0700 (PDT)
In-Reply-To: <CAKiZDp25trmzu6JewO8ieQ1yzDdE2s5cQdkTFz3VnBxwMMe6zA@mail.gmail.com>
X-Original-Sender: andrewtomazos@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of andrewtomazos@gmail.com designates 2a00:1450:400c:c05::231 as
 permitted sender) smtp.mailfrom=andrewtomazos@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=NONE 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: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://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>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:20524
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/20524>

--047d7b874e5014669305202e5935
Content-Type: text/plain; charset=UTF-8

On Sun, Sep 20, 2015 at 3:14 PM, Patrice Roy <patricer@gmail.com> wrote:

> Hi!
>
> In:
>
> This would mean we would have to write:
>>
>>   std::cout << F"% The number of %goods is %count";
>>
>> (which some have requested anyway).
>>
>
> ... you might be referring to my questions. I think I saw the F"..."
> syntax as a formated literal, and expected it to be of a given type
> (assigning it to a string did seem to be an option in my mind), but reading
> the discussions since I can see that might not have been the intention. It
> still does seem reasonable to me to treat this as having a type and
> interacting with the rest of the type system, but if such was not your
> intent I also don't want to drag your proposal in a priori unwanted
> directions. I'm guessing others will have the same reflex, that being said,
> so it's probably a wise choice to treat this question in the proposal.
>

Thanks Patrice.  The proposal has been discussed in other places, and other
people had the same request.  I think an interpolated string literal can be
defined in such a way that it is an expression, and still allow "streaming"
performance w.r.t. to ostream - as outlined in my last post.  The extra <<
doesn't do too much damage to the syntax.

-- 

--- 
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/.

--047d7b874e5014669305202e5935
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Sun, Sep 20, 2015 at 3:14 PM, Patrice Roy <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:patricer@gmail.com" target=3D"_blank">patricer@gmail.com</a>&=
gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);bord=
er-left-style:solid;padding-left:1ex"><div dir=3D"ltr"><div>Hi!<br><br>In:<=
span><br><br><blockquote style=3D"margin:0px 0px 0px 0.8ex;border-left-widt=
h:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-le=
ft:1ex" class=3D"gmail_quote"><div>This would mean we would have to write:<=
/div><div><br></div><div><div>=C2=A0 std::cout &lt;&lt; F&quot;% The number=
 of %goods is %count&quot;;</div></div><div><br></div></blockquote><blockqu=
ote style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-sty=
le:solid;border-left-color:rgb(204,204,204);padding-left:1ex" class=3D"gmai=
l_quote"><div>(which some have requested anyway).<br></div></blockquote><di=
v><br></div></span>... you might be referring to my questions. I think I sa=
w the F&quot;...&quot; syntax as a formated literal, and expected it to be =
of a given type (assigning it to a string did seem to be an option in my mi=
nd), but reading the discussions since I can see that might not have been t=
he intention. It still does seem reasonable to me to treat this as having a=
 type and interacting with the rest of the type system, but if such was not=
 your intent I also don&#39;t want to drag your proposal in a priori unwant=
ed directions. I&#39;m guessing others will have the same reflex, that bein=
g said, so it&#39;s probably a wise choice to treat this question in the pr=
oposal.<br></div></div></blockquote><div>=C2=A0</div><div>Thanks Patrice.=
=C2=A0 The proposal has been discussed in other places, and other people ha=
d the same request.=C2=A0 I think an interpolated string literal can be def=
ined in such a way that it is an expression, and still allow &quot;streamin=
g&quot; performance w.r.t. to ostream - as outlined in my last post.=C2=A0 =
The extra &lt;&lt; doesn&#39;t do too much damage to the syntax.<br></div><=
div><br></div></div></div></div>

<p></p>

-- <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+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 />
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 />

--047d7b874e5014669305202e5935--

.
