220 20537 <680cc175-12e5-4027-aa9d-ade90f00445e@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: jgottman6@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Rough Draft Proposal of Interpolated String Literals
Date: Sun, 20 Sep 2015 15:36:49 -0700 (PDT)
Lines: 91
Approved: news@gmane.org
Message-ID: <680cc175-12e5-4027-aa9d-ade90f00445e@isocpp.org>
References: <CAB+4KHKxwEPXSFScU-FjeUL=yQFZWGfm6uk5fbh1+9bfScL_2Q@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_3848_1158009187.1442788609443"
X-Trace: ger.gmane.org 1442788615 21732 80.91.229.3 (20 Sep 2015 22:36:55 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 20 Sep 2015 22:36:55 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBD7LHGWIQEPRBAXK7SXQKGQEBHIU6YA@isocpp.org Mon Sep 21 00:36:54 2015
Return-path: <std-proposals+bncBD7LHGWIQEPRBAXK7SXQKGQEBHIU6YA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pa0-f72.google.com ([209.85.220.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBD7LHGWIQEPRBAXK7SXQKGQEBHIU6YA@isocpp.org>)
	id 1ZdnE5-00038u-9I
	for gclcip-std-proposals@m.gmane.org; Mon, 21 Sep 2015 00:36:53 +0200
Original-Received: by pacgz1 with SMTP id gz1sf101277867pac.0
        for <gclcip-std-proposals@m.gmane.org>; Sun, 20 Sep 2015 15:36:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :content-type: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=oCrcxoTtPixu7FfhJRvyULQiNtHjrZ0GIqaXQt4nRlc=;
        b=Ck0oPAmZs6A4Kb/JNZhXZCMxh/l0VZv2zwZM0Fl5j/q0tfJU45+7ijx9h/u+cfJTBW
         QyhTpn22ZPoX0n6ob9U1VUX3ISxlU1EWJxOf+bIMcwBXl9m1CihrRCYReYw1pB8Ukc3D
         Ii3pvbjuRGdhloRnQfeAcFq9WknjCQIA+PD4YN80Hrqgr/zLIFPovyCyp2reB2sM6rla
         YmGfj5NugrNPEwFrJ4EgHqm5r7sVSfL2/QXydc6F2++WmbBdOfSGhlDD81UpYquK5lGg
         bSj1rjFUjsWQfMkn9R2218sqXV3A/MCkwHb9wzpNAx5sa4o+KAoK+mxn8JL+A6bUeIgd
         Q5ow==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:content-type: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=oCrcxoTtPixu7FfhJRvyULQiNtHjrZ0GIqaXQt4nRlc=;
        b=QwWpl1LH5mXoS8XmJlGWu0V7atPwoGvOAuL+0l47KvVbMr8lICXf3wNqHNpv3/Fp3K
         +v3N3VgKzXbppx4Z+ZC2MXmSIV7qNWWEoNnu/P/xS/x7IRTWS/hFt3cfd5Jl4iLXVa6k
         pxYMn//kYu0+oKTJt26G9Fxh8ObbDnR4PfOxL1D78/Auh5AwbwBOL1FZ13urSJDd9nM+
         tYSv2CEm0sVsyqvJjezGEfqLz25V1OtAZ/9W/y7jvNFwiIWIwJFGszImYw+iUmxqpJM8
         YADDYDwiwFOjfPC8gb51dDkekz6Peq2Ijx0RiZkyAdiDonGc/hfMwel1BFaVjbrxUvvi
         agjw==
X-Gm-Message-State: ALoCoQkQ93ME90aJHr6iTEPYsGJmAXi5Hf1vcij/ysWmuv/47sLPNiFRNiE2+5rwyhy/wF4M3EE6
X-Received: by 10.68.68.202 with SMTP id y10mr6589568pbt.0.1442788611384;
        Sun, 20 Sep 2015 15:36:51 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.178.148 with SMTP id cy20ls705690igc.32.gmail; Sun, 20 Sep
 2015 15:36:50 -0700 (PDT)
X-Received: by 10.50.79.193 with SMTP id l1mr77824igx.2.1442788610647;
        Sun, 20 Sep 2015 15:36:50 -0700 (PDT)
In-Reply-To: <CAB+4KHKxwEPXSFScU-FjeUL=yQFZWGfm6uk5fbh1+9bfScL_2Q@mail.gmail.com>
X-Original-Sender: jgottman6@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:20537
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/20537>

------=_Part_3848_1158009187.1442788609443
Content-Type: multipart/alternative; 
	boundary="----=_Part_3849_672942374.1442788609443"

------=_Part_3849_672942374.1442788609443
Content-Type: text/plain; charset=UTF-8

One major problem with this is that it is only possible to interpolate 
named variables, not arbitrary values.  This means that it would be 
impossible to interpolate an element of an array or the result of a 
function call.  I would prefer something like Ruby's #{ .. }  interpolation 
syntax, where you can do something like

a = 1
b = 2
puts "#{a} + #{b} = #{a + b}" # Prints "1 + 2 = 3"


Joe Gottman

On Friday, September 18, 2015 at 4:22:01 PM UTC-4, Andrew Tomazos wrote:
>
> Please find attached a very very rough draft of a proposal entitled 
> "Interpolated String Literals".
>
> Mainly after encouragement or discouragement, and any high-level thoughts 
> you might have about it.
>
>

-- 

--- 
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/.

------=_Part_3849_672942374.1442788609443
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">One major problem with this is that it is only possible to=
 interpolate named variables, not arbitrary values.=C2=A0 This means that i=
t would be impossible to interpolate an element of an array or the result o=
f a function call.=C2=A0 I would prefer something like Ruby&#39;s #{ .. }=
=C2=A0 interpolation syntax, where you can do something like<br><br><div cl=
ass=3D"prettyprint" style=3D"background-color: rgb(250, 250, 250); border-c=
olor: rgb(187, 187, 187); border-style: solid; border-width: 1px; word-wrap=
: break-word;"><code class=3D"prettyprint"><div class=3D"subprettyprint"><s=
pan style=3D"color: #000;" class=3D"styled-by-prettify">a </span><span styl=
e=3D"color: #660;" class=3D"styled-by-prettify">=3D</span><span style=3D"co=
lor: #000;" class=3D"styled-by-prettify"> </span><span style=3D"color: #066=
;" class=3D"styled-by-prettify">1</span><span style=3D"color: #000;" class=
=3D"styled-by-prettify"><br>b </span><span style=3D"color: #660;" class=3D"=
styled-by-prettify">=3D</span><span style=3D"color: #000;" class=3D"styled-=
by-prettify"> </span><span style=3D"color: #066;" class=3D"styled-by-pretti=
fy">2</span><span style=3D"color: #000;" class=3D"styled-by-prettify"><br>p=
uts </span><span style=3D"color: #080;" class=3D"styled-by-prettify">&quot;=
#{a} + #{b} =3D #{a + b}&quot;</span><span style=3D"color: #000;" class=3D"=
styled-by-prettify"> </span><span style=3D"color: #800;" class=3D"styled-by=
-prettify"># Prints &quot;1 + 2 =3D 3&quot;</span><span style=3D"color: #00=
0;" class=3D"styled-by-prettify"><br></span></div></code></div><br><br>Joe =
Gottman<br><br>On Friday, September 18, 2015 at 4:22:01 PM UTC-4, Andrew To=
mazos wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-lef=
t: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr">P=
lease find attached a very very rough draft of a proposal entitled &quot;In=
terpolated String Literals&quot;.<div><br></div><div>Mainly after encourage=
ment or discouragement, and any high-level thoughts you might have about it=
..</div><div><br></div></div>
</blockquote></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 />

------=_Part_3849_672942374.1442788609443--
------=_Part_3848_1158009187.1442788609443--

.
