220 20540 <mtnhc0$mr2$1@ger.gmane.org> article
Path: news.gmane.org!not-for-mail
From: Jim Porter <jvp4846@g.rit.edu>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Rough Draft Proposal of Interpolated String Literals
Date: Sun, 20 Sep 2015 19:01:01 -0500
Lines: 29
Approved: news@gmane.org
Message-ID: <mtnhc0$mr2$1@ger.gmane.org>
References: <CAB+4KHKxwEPXSFScU-FjeUL=yQFZWGfm6uk5fbh1+9bfScL_2Q@mail.gmail.com>
 <mtn6lu$3mr$1@ger.gmane.org> <043C43B5-72C9-4136-8D2F-2A3D745B2975@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1442793687 23827 80.91.229.3 (21 Sep 2015 00:01:27 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 21 Sep 2015 00:01:27 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDYZZG6PQYFRBSMR7WXQKGQEVPHO24A@isocpp.org Mon Sep 21 02:01:18 2015
Return-path: <std-proposals+bncBDYZZG6PQYFRBSMR7WXQKGQEVPHO24A@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f200.google.com ([209.85.212.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDYZZG6PQYFRBSMR7WXQKGQEVPHO24A@isocpp.org>)
	id 1ZdoXi-0000Qv-Hk
	for gclcip-std-proposals@m.gmane.org; Mon, 21 Sep 2015 02:01:14 +0200
Original-Received: by wisv5 with SMTP id v5sf25792072wis.0
        for <gclcip-std-proposals@m.gmane.org>; Sun, 20 Sep 2015 17:01:14 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:content-type:content-transfer-encoding:user-agent
         :in-reply-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=u/xHvYe8TFzH+lEJkn1bzOs+P4dGOuWH95kiQwQ3KEM=;
        b=ZUcDH4EFDg+eBjr+4jt6PDVN0yTIzihvwpoTGtR0d1vmCuzM+BkicGREg9VLZd7Phl
         7J/uzHGYri5u6jl0rSd4Q06Ety6egNJ7lb+o7N8s8yGy6iGUVh1phGpf39OwRqy2LaBB
         uMsCfNKOo73aWKm3TAX5A8TUhsUaYos611TEEGnJ/yXFHFLgNxWzTLr4qvFZnIj42C0c
         noeYLTaEbavjvmAC4FThjTxV48yRo7odReUE8/vfCpio/ZeVWudq68GBMiev46Ct9rRx
         EGoiw9aiOpnOLk0nIE4fkFbzwGrbBlWLPhVvMzmoVlFzjYP/64t 
X-Gm-Message-State: ALoCoQnnjPjjvTdM7WLJ16tO7kTPrVGJaHwSheoIT+KQenA3N11lnwqfENZh7d4d8sLdOKBgdOo+
X-Received: by 10.152.29.10 with SMTP id f10mr2733364lah.1.1442793673988;
        Sun, 20 Sep 2015 17:01:13 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.1.232 with SMTP id 8ls380295lap.103.gmail; Sun, 20 Sep
 2015 17:01:12 -0700 (PDT)
X-Received: by 10.152.219.4 with SMTP id pk4mr6546027lac.94.1442793672602;
        Sun, 20 Sep 2015 17:01:12 -0700 (PDT)
Original-Received: from plane.gmane.org (plane.gmane.org. [80.91.229.3])
        by mx.google.com with ESMTPS id i5si3787428lbs.64.2015.09.20.17.01.12
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Sun, 20 Sep 2015 17:01:12 -0700 (PDT)
Received-SPF: pass (google.com: domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as permitted sender) client-ip=80.91.229.3;
Original-Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1ZdoXe-0000JG-MA
	for std-proposals@isocpp.org; Mon, 21 Sep 2015 02:01:10 +0200
Original-Received: from 71-90-29-121.dhcp.ftbg.wi.charter.com ([71.90.29.121])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Mon, 21 Sep 2015 02:01:10 +0200
Original-Received: from jvp4846 by 71-90-29-121.dhcp.ftbg.wi.charter.com with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Mon, 21 Sep 2015 02:01:10 +0200
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 16
Original-X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: 71-90-29-121.dhcp.ftbg.wi.charter.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101
 Thunderbird/38.2.0
In-Reply-To: <043C43B5-72C9-4136-8D2F-2A3D745B2975@gmail.com>
X-Original-Sender: jvp4846@g.rit.edu
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as
 permitted sender) smtp.mailfrom=gclcip-std-proposals@m.gmane.org
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:20540
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/20540>

On 9/20/2015 4:14 PM, Miro Knejp wrote:
> If you need format specifiers or a runtime-provided format string
> then string interpolation is not the tool you=E2=80=99re looking for. Str=
ing
> interpolation does not replace formatting and vice versa. String
> interpolation is used when the tokenization and formatting rules are
> determined at compile time, where it is a convenient syntax to
> replace a bunch of function or operator call boilerplate.

I'm not sure I understand. It seems perfectly reasonable to me to have a=20
statically-defined format specifier like "print this number as=20
hexadecimal" or "pad this value to 8 characters". My concern is that I=20
can't think of a clean syntax for doing this *and* allowing in-place=20
expressions in the format string.

- Jim


--=20

---=20
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 e=
mail 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-proposa=
ls/.

.
