220 38246 <f98f4f3a-18e3-464f-a299-be18b9c20439@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nicol Bolas <jmckesson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Simple, terse universal forwading for the
 next decade
Date: Mon, 28 May 2018 12:06:08 -0700 (PDT)
Lines: 87
Approved: news@gmane.org
Message-ID: <f98f4f3a-18e3-464f-a299-be18b9c20439@isocpp.org>
References: <80548757-8a42-499a-bf15-3670b2727082@isocpp.org>
 <8d3b34de-c06a-4083-bb0c-8e2c7482abf0@isocpp.org> <9930a9dc-b998-4431-a159-6d72d1d9b2ff@isocpp.org>
 <CALmDwq2ku8=UX1XYGtroNQ5nUCZ6HvSN9TDSmrdg4S+YOU0R1A@mail.gmail.com>
 <8e1c6607-a92d-496b-aad1-e992e049a748@isocpp.org> <CALmDwq1CpLZJMFiY1-3Nk-bq+686h2g7rdT6JcSpSg6yYu39zg@mail.gmail.com>
 <2f782c2d-e89c-4d8b-8ef6-372c00e62ab1@isocpp.org> <93ee46a2-1469-48ae-b931-c060946f38d5@isocpp.org>
 <609892ba-f717-4458-b9e3-c5975378ad29@isocpp.org> <CAANG=kUqV_OU+XTZpgMg3LJo_EH1P9CMWVXi+ZUx4aa-mcH54g@mail.gmail.com>
 <CALvx3haxYiRPejcW3TqvCWcD9RRm+qZcz2F6vcVMVBx3PDJF2w@mail.gmail.com>
 <4d68237c-077a-4408-abf1-5f9670311f71@isocpp.org> <CAANG=kVSgNmGAyjSv3TzijXPUdd1qy=d6NLqkkeYbxz3HVqXfg@mail.gmail.com>
 <aa3b6d3b-78c9-447b-8052-143f6dc5b32c@isocpp.org> <CANPOWsdk+X4Ydb4acYW9b9iy1nUOKxNLqhZBk+JeCnJyeetB5w@mail.gmail.com>
 <CAANG=kXffB7HuGUMsLAfrKHbavJwxdOrmz9=tWC2Ev4S0pFQuw@mail.gmail.com> <70fe7dc7-b8a6-4498-9aa6-f88e6af06506@isocpp.org>
 <CAANG=kWd9m51WwwAQV22pGDo8=85kCiveM60mMo2+pp_J7K8Og@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_22019_1239524599.1527534368794"
X-Trace: blaine.gmane.org 1527534246 32338 195.159.176.226 (28 May 2018 19:04:06 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 28 May 2018 19:04:06 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCEKFTV6ZUMBBINGWHMAKGQESW6MZFY@isocpp.org Mon May 28 21:04:02 2018
Return-path: <std-proposals+bncBCEKFTV6ZUMBBINGWHMAKGQESW6MZFY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw0-f200.google.com ([209.85.161.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCEKFTV6ZUMBBINGWHMAKGQESW6MZFY@isocpp.org>)
	id 1fNNR1-0008Gk-Cf
	for gclcip-std-proposals@m.gmane.org; Mon, 28 May 2018 21:03:59 +0200
Original-Received: by mail-yw0-f200.google.com with SMTP id w8-v6sf2767121ywg.22
        for <gclcip-std-proposals@m.gmane.org>; Mon, 28 May 2018 12:06:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=0jXRK+b2mnhVuSCFdW+cvxIgbcaKUmnTkaa4jYT/H1Y=;
        b=QAedkkcSWslmabCEphjbjVEYsXhzgXl46iKenmru03mZvote6pPe4SFqbP8Mq9xOIu
         Atk8G+iRKnmk0bFFXpfIqsQ6T5sl9BHdNGQcqdd7ar3RIVbgJdalSmX8SnuEgjmkwu0E
         frghdWDpVm8uReD++WJJrIUl15KqVGNwbit2AT6BOw5FXR34eK+eaMcJv+J2Nk+H6Q8v
         1OPxYpA69RV+Zps+DWEvoa36ijNJDWyEYhEcnG2kbWqmMKxMuxyu+0tdBc1VoudclrVw
         gWOdSDPLjPkzXI9o38eZ6ftZ+f+Lvos1G2tFRiBCaH34ws8SN3hPP572/GXhojWgTa2E
         +Wqw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=0jXRK+b2mnhVuSCFdW+cvxIgbcaKUmnTkaa4jYT/H1Y=;
        b=BH6ZFyf1X+5RU/DBIXk68CgQDaPqn0p4vdirEvaKnRPEVZftewrDUy/rPD3mGqtaQn
         GMohZhS+O8jIltOGGMyLoOi3bFh8hRgm1Mr3LsAwI7dSg0oJyPmF5kJE3z1JX1U8AsSc
         GKF9E3fV86jLC7DawqgmEGR/K2LVeL4BVbOaEIuNWKJh8LSL1i98r4CfSBefrZ5HVGLX
         1zW74BPvaKLJpLijBEh5266IdDejJU23SyHcyRlpn2o3w2DjJ+IclWdDYqm3E5KfhDcV
         NrQ/UpQKtIxAb1AZR3V6GnAk1RBH4WiXkruD0zTr+jLL/ovyjj+BNA2LP0C80+u7D1T1
         7mvA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version: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=0jXRK+b2mnhVuSCFdW+cvxIgbcaKUmnTkaa4jYT/H1Y=;
        b=iKSaKhqXWSuetyznVpL6DxZtjp9B4ebWyTCBnVlVHCZmTc4H/cpWIM3e7YGk9L2aWm
         TiSOl44iJ7+h/DjmwORuwsc+jrjvil7oREKMm8qxJ0cvv6B4LfpPVmoVujR92unoqtHC
         5MDM5UCUPdKG3W8mb14LeDvSLf9UI5qoFs3yonIxcJoYthffnoUyXcoQsLiyQhp1E7Dl
         cSKdz21xWS1Io3LCJXeoRWnhUiLrpUdhnHHsak5yXhC6plM8SZ9t0PLOvmNnpYrbpu8m
         5R57IMcRedwNcuYd1UohAEWuopACnqEBotiJSHls5jSfk6MOz8OgHhR704jCT9A1r5p7
         Om8Q==
X-Gm-Message-State: ALKqPwdHm/aawf1a9AEluzW+XZEGuTdZP2PpG63MQfi7wa9bQeBG9QKW
	0JvmvVwJKlydAnJLaKLB3O37AA==
X-Google-Smtp-Source: AB8JxZpFIYXxqQnsbjosb4RtJV8gJme27KFnH8UBe9cKYXYemU2UQRNNST+Jf0HhBxDG1wizIZpc9Q==
X-Received: by 2002:a81:a389:: with SMTP id a131-v6mr3930633ywh.82.1527534370360;
        Mon, 28 May 2018 12:06:10 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a81:2089:: with SMTP id g131-v6ls3174350ywg.34.gmail; Mon,
 28 May 2018 12:06:09 -0700 (PDT)
X-Received: by 2002:a81:9341:: with SMTP id k62-v6mr422704ywg.4.1527534369448;
        Mon, 28 May 2018 12:06:09 -0700 (PDT)
In-Reply-To: <CAANG=kWd9m51WwwAQV22pGDo8=85kCiveM60mMo2+pp_J7K8Og@mail.gmail.com>
X-Original-Sender: jmckesson@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:38246
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/38246>

------=_Part_22019_1239524599.1527534368794
Content-Type: multipart/alternative; 
	boundary="----=_Part_22020_1433131758.1527534368794"

------=_Part_22020_1433131758.1527534368794
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Monday, May 28, 2018 at 1:50:41 PM UTC-4, Ga=C5=A1per A=C5=BEman wrote:
>
> Also, I meant =3D> as prefix. Postfix unary operators are *weird*.
>

One of the problems with the prefix `>>` that was proposed in the older=20
proposal was that this was weird: `[name=3D>>arg]`. The `=3D>` prefix would=
=20
have the same oddity.

What I wonder about is the design space for contextual keywords. C++ has=20
only used them in two places, but right now, I don't believe `<identifier>=
=20
<identifier>` has a syntactic meaning in an expression. As such, it is at=
=20
least theoretically possible to apply a contextual keyword `fwd` to an=20
identifier. But it would *only* work when followed by an identifier, not=20
when followed by arbitrary expressions or even `(`.

Things like this are why the committee should have adopted the P0056: Soft=
=20
Keywords proposal. There are just too many places in the language where a=
=20
keyword is a natural solution, but selecting the "right" keyword is hard=20
and/or the problem isn't worth the cost of a true keyword.

--=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.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/f98f4f3a-18e3-464f-a299-be18b9c20439%40isocpp.or=
g.

------=_Part_22020_1433131758.1527534368794
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Monday, May 28, 2018 at 1:50:41 PM UTC-4, Ga=C5=A1per A=
=C5=BEman wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin=
-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"lt=
r"><div></div><div>Also, I meant =3D&gt; as prefix. Postfix unary operators=
 are *weird*.</div></div></blockquote><div><br></div><div>One of the proble=
ms with the prefix `&gt;&gt;` that was proposed in the older proposal was t=
hat this was weird: `[name=3D&gt;&gt;arg]`. The `=3D&gt;` prefix would have=
 the same oddity.</div><div><br></div><div>What I wonder about is the desig=
n space for contextual keywords. C++ has only used them in two places, but =
right now, I don&#39;t believe `&lt;identifier&gt; &lt;identifier&gt;` has =
a syntactic meaning in an expression. As such, it is at least theoretically=
 possible to apply a contextual keyword `fwd` to an identifier. But it woul=
d <i>only</i> work when followed by an identifier, not when followed by arb=
itrary expressions or even `(`.</div><div><br></div><div>Things like this a=
re why the committee should have adopted the P0056: Soft Keywords proposal.=
 There are just too many places in the language where a keyword is a natura=
l solution, but selecting the &quot;right&quot; keyword is hard and/or the =
problem isn&#39;t worth the cost of a true keyword.<br></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/f98f4f3a-18e3-464f-a299-be18b9c20439%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/f98f4f3a-18e3-464f-a299-be18b9c20439=
%40isocpp.org</a>.<br />

------=_Part_22020_1433131758.1527534368794--

------=_Part_22019_1239524599.1527534368794--

.
