220 12439 <570663A9-F617-442F-9B48-5B6E7311AE72@gmail.com> article
Path: news.gmane.org!not-for-mail
From: David Krauss <potswa@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Placeholder literals
Date: Sun, 24 Aug 2014 09:21:14 +0800
Lines: 65
Approved: news@gmane.org
Message-ID: <570663A9-F617-442F-9B48-5B6E7311AE72@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Content-Type: multipart/alternative; boundary="Apple-Mail=_EB93A71B-5D9C-4C78-8786-3EA3A5DF2EA7"
X-Trace: ger.gmane.org 1408843388 22930 80.91.229.3 (24 Aug 2014 01:23:08 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 24 Aug 2014 01:23:08 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCW25A7E3QCRB4X44SPQKGQE4ZRHQBQ@isocpp.org Sun Aug 24 03:23:02 2014
Return-path: <std-proposals+bncBCW25A7E3QCRB4X44SPQKGQE4ZRHQBQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pa0-f70.google.com ([209.85.220.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCW25A7E3QCRB4X44SPQKGQE4ZRHQBQ@isocpp.org>)
	id 1XLMWK-0004Yh-Lh
	for gclcip-std-proposals@m.gmane.org; Sun, 24 Aug 2014 03:23:01 +0200
Original-Received: by mail-pa0-f70.google.com with SMTP id lf10sf104741877pab.9
        for <gclcip-std-proposals@m.gmane.org>; Sat, 23 Aug 2014 18:22:59 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:subject:message-id:date:to:mime-version
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=q9niOV2ZlB4cUS9VFfdo4h/ySpefrh6XnKHsfYttDyA=;
        b=Hs5ygOkSZPkNnv1HSbJTSJFLdG4btE0AapL0BWEpsHAdSaPeuMyn5ntzGJ35vEY/WK
         56/gg4TCkkNUwAQMG1fTZMBkrm/fhMbIiBdZDlCgVgUKdfrGEuiL/5NqDhLTSUsU2rPO
         HB5zaozD6O+/H8UrsbJdrWO99FH134tkRx8UgaH7WSQUbtgiycj/GvklDo/zhU7rTAkK
         Jg128j2RdIe0+PsdnmnO23aOJQ+X89j4MNlu5+wUAXCpYyFQjg+eoLNJ8R4+yZ+VE70T
         Dy+ODkTa1zx/NkRBQlD4DYSHf5PNELUkBO91qx7d3wBneXYe1ZSHzWX+8KLWZhn6rs5l
         Nv+Q==
X-Gm-Message-State: ALoCoQmO9FfHiEGk82YSMHpvoOQ8G6IYNjxr0zOaHlhrI14wgyxqAKfwdBPd2gCzJaqPQaveLLsC
X-Received: by 10.66.248.232 with SMTP id yp8mr5654513pac.22.1408843379616;
        Sat, 23 Aug 2014 18:22:59 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.79.168 with SMTP id k8ls607418igx.6.canary; Sat, 23 Aug
 2014 18:22:58 -0700 (PDT)
X-Received: by 10.68.104.98 with SMTP id gd2mr17231036pbb.13.1408843378682;
        Sat, 23 Aug 2014 18:22:58 -0700 (PDT)
Original-Received: from mail-pd0-x234.google.com (mail-pd0-x234.google.com [2607:f8b0:400e:c02::234])
        by mx.google.com with ESMTPS id ul9si46569476pbc.40.2014.08.23.18.22.58
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sat, 23 Aug 2014 18:22:58 -0700 (PDT)
Received-SPF: pass (google.com: domain of potswa@gmail.com designates 2607:f8b0:400e:c02::234 as permitted sender) client-ip=2607:f8b0:400e:c02::234;
Original-Received: by mail-pd0-f180.google.com with SMTP id v10so18063555pde.39
        for <std-proposals@isocpp.org>; Sat, 23 Aug 2014 18:22:58 -0700 (PDT)
X-Received: by 10.68.57.144 with SMTP id i16mr17412443pbq.48.1408843378469;
        Sat, 23 Aug 2014 18:22:58 -0700 (PDT)
Original-Received: from [172.20.10.2] ([121.54.54.37])
        by mx.google.com with ESMTPSA id h4sm50449938pdi.30.2014.08.23.18.22.33
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sat, 23 Aug 2014 18:22:57 -0700 (PDT)
X-Mailer: Apple Mail (2.1878.6)
X-Original-Sender: potswa@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of potswa@gmail.com designates 2607:f8b0:400e:c02::234 as permitted
 sender) smtp.mail=potswa@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-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:12439
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/12439>

--Apple-Mail=_EB93A71B-5D9C-4C78-8786-3EA3A5DF2EA7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1

Why not add literal operator templates returning placeholders?

Compare:
	std::placeholders::_1 // old
	1param // new

Would it cause a problem to add it in the global namespace with no leading =
underscore? This saves the user a using directive and the name operator "" =
param is reserved to the language anyway. It should still be an ordinary pa=
rt of the language, declared by <functional>.

The name needs to be bikeshedded.

--=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/.

--Apple-Mail=_EB93A71B-5D9C-4C78-8786-3EA3A5DF2EA7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=ISO-8859-1

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html charset=
=3Dus-ascii"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode=
: space; -webkit-line-break: after-white-space;">Why not add literal operat=
or templates returning placeholders?<div><br></div><div>Compare:</div><div>=
<font face=3D"Courier"><span class=3D"Apple-tab-span" style=3D"white-space:=
pre">	</span>std::placeholders::_1 // old</font></div><div><font face=3D"Co=
urier"><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>1pa=
ram // new</font></div><div><br></div><div>Would it cause a problem to add =
it in the global namespace with no leading underscore? This saves the user =
a <font face=3D"Courier">using</font> directive and the name <font face=3D"=
Courier">operator "" param</font> is reserved to the language anyway. It sh=
ould still be an ordinary part of the language, declared by <font face=3D"C=
ourier">&lt;functional&gt;</font>.</div><div><br></div><div>The name needs =
to be bikeshedded.</div><div><br></div></body></html>

<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 />

--Apple-Mail=_EB93A71B-5D9C-4C78-8786-3EA3A5DF2EA7--

.
