220 40586 <CAEfefmwYXdWu1EfYxBmkxbN=n-3WpWqqWx0ApR9DNdgQky-NFA@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Dejan Milosavljevic <dmilos@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: against P1274R0 add $ to identifier names
Date: Wed, 17 Oct 2018 09:49:56 +0200
Lines: 138
Approved: news@gmane.org
Message-ID: <CAEfefmwYXdWu1EfYxBmkxbN=n-3WpWqqWx0ApR9DNdgQky-NFA@mail.gmail.com>
References: <f06c38a8-e92d-4c99-ac15-c71e8ecc091a@isocpp.org>
 <CA+Om+SjSnLe8d11wgoVmaKR2t-oJ9MyYb8F3tueSMtQmKconuw@mail.gmail.com>
 <1484cf21-8224-4fb8-457e-8c1e4a3121c2@gmail.com> <10926898.pV5Fg0ApEB@tjmaciei-mobl1>
 <CALmDwq3a3Qo2YkQ_0miPqMj6Lx0ck9E_0H+A_xTh8fbfF1KZFg@mail.gmail.com> <341708ed-e98b-1744-fbdb-5b1036838323@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="00000000000065c3da057867eb56"
X-Trace: blaine.gmane.org 1539762485 24564 195.159.176.226 (17 Oct 2018 07:48:05 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 17 Oct 2018 07:48:05 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDFYFDOFWUGBBMWTTPPAKGQEN3FDSXY@isocpp.org Wed Oct 17 09:48:01 2018
Return-path: <std-proposals+bncBDFYFDOFWUGBBMWTTPPAKGQEN3FDSXY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm1-f69.google.com ([209.85.128.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDFYFDOFWUGBBMWTTPPAKGQEN3FDSXY@isocpp.org>)
	id 1gCgYj-0006HN-G3
	for gclcip-std-proposals@m.gmane.org; Wed, 17 Oct 2018 09:48:01 +0200
Original-Received: by mail-wm1-f69.google.com with SMTP id w193-v6sf894644wmf.8
        for <gclcip-std-proposals@m.gmane.org>; Wed, 17 Oct 2018 00:50:12 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1539762612; cv=pass;
        d=google.com; s=arc-20160816;
        b=Hc0V/hRWrXvRP2ElFEPlFWKqn+G3OBMfFfVFOsLsfA7SjjiDnZ8IXot2IddbzFF5Fr
         zBKlo8UulGzzFAdhYpRBPpsEGEdtuL3g7rcMYIa7+6Fc4YNgDIH2VyvW7bgAApgsBE1d
         vvkdmsgUY9tTS/dUwR+b6qrk6xhWm/Y8iJ7WRtpkuoHEay62kjWIHtBwwqCjAHKiVK1U
         FjwnPWodTwnSQoge77HMFbtWcNRkUwsSHqZoy01dQUuL9KB6AOG1oLpH+vQEeT7A4fSI
         wxJi7x4QVswuAJFM0RrSuD6IlW8HxrSL0CAWi+/SVf+M8UN0PWN+sF5rZpzaCetCEA2p
         /c+A==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:in-reply-to:references:mime-version:dkim-signature;
        bh=hQ6a27FYhEoeomWoP6v8nkQT/7Xa16eYaxHSVEATO1w=;
        b=ysR1gsQ1wwO/3DO66fcuyUycEiVUxg9Jm/ie2/ep63/3h6T/kgqdA4M4o+Zz+ctxmd
         tvagmjrWTXl9sS7fTHbLCHtZyItQ0glYZ3+OipWHeMSBH1idxW5p/U9Qnc1Uds67Nq/k
         xn0XsMMx4OvrQLqIcZtylmy1R/wha6iIGb0mlH4Kd03ybYvSP+IligmIGDl7qx/9miIw
         1MAKNuSB7921gwHavaMiXjtorF02nBvuwGNMWfLb0trdA2q6AMSHwPhldbkvIidymUHM
         jJ4dpqqOqzLGvdYlArI+RbFLCa6MslqmX9Vmk0+7g+pb+uK6DYYY6wJC4nrJ1qpjtvvU
         9ClA==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=apfMVtQv;
       spf=pass (google.com: domain of dmilos@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dmilos@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:references:in-reply-to:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=hQ6a27FYhEoeomWoP6v8nkQT/7Xa16eYaxHSVEATO1w=;
        b=BOm5zrJ6l1Qm07TLa3blMkSzNOTbDiIXeEN+ce/GVTqhJg7TtkHrJ/5WS61jSWOrak
         eTUavG8ua33OXb0M/aUrw6Qae5fEgGMDh+nJue39+aOXaGAdqKBtKF2+U7dSBQ09S/Xl
         L7mAbRc0AdGX8FA5RWdALGYp1NI4et19M2C+KDnNSGbYcttkwv+KHVvxMEuZZ3h60uZH
         JB16TR6ejKqZ0MQyMcaaZWUm27Ejy9ikIVgLLbfjCoVgAK538zYPdmlAmOAk+JhN6cyX
         QTG1DTdD+I4l0rnDnQ5aamKikA+36zvrYYPgjKLaui6/84oW0eAiYZvtNkVMKKKaG06X
         1U0Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject: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=hQ6a27FYhEoeomWoP6v8nkQT/7Xa16eYaxHSVEATO1w=;
        b=Y7d6DuPhIk6/fSIEuWMz/vnCakbb+wDSVkDOi1+KrMy7Cm7aqEGdNcJ14aJt/D2laj
         +L5yp9OOs38961e/z64TbojxMzlCeo/+AunaBPE4cmlOufBddUpufN0SyUY6yliBMPDt
         ZoIpH00nG6byPdkMSWQBA5NjPJ7u2RrIOq6OfpOcLWDHz0riE2I2n+V6Fr1S/L0t9/Qk
         OkKNRPrN2NB0WiZWiYs2LunF4bneRHz7C9tLBVSMvUpcwFyZcnyOIFNxJNOCOiBm19Gg
         aenzPlBLIXOA6p3NXvYw95rvS4N5tzlR5Tb8ldHdWiY34wJfl+i4eeaQiyvQsoXBLuUP
         yFuQ==
X-Gm-Message-State: ABuFfoiAUc9u9/ZOrZxf33yfI2sEwTO1wyEXuhO9Bp45ftJ+wR/i25HK
	OdTJAHnB96KqeLaMMWcthnCHuA==
X-Google-Smtp-Source: ACcGV63l2i1yyVts2HZGQDcU6Gwhck53GLTVowYSZzby3tIZsn2db8irNp2IGXOabXi+euOFzXaIFA==
X-Received: by 2002:a1c:b5c9:: with SMTP id e192-v6mr153381wmf.22.1539762611901;
        Wed, 17 Oct 2018 00:50:11 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:adf:93e1:: with SMTP id 88-v6ls2079797wrp.19.gmail; Wed, 17
 Oct 2018 00:50:10 -0700 (PDT)
X-Received: by 2002:adf:e387:: with SMTP id e7-v6mr22351959wrm.94.1539762610367;
        Wed, 17 Oct 2018 00:50:10 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1539762610; cv=none;
        d=google.com; s=arc-20160816;
        b=Alo+vwtFTsmFy/BJ0dzc9W8GBlplS66eOSiX3nwmBIZ+SkkMvIccGeSFLa21RdRNyn
         lBzGDPuLtIYp82VH3vkROWe4K0PYZ1seRS3AGawHCWCZaPoh3A1SAqmzCE6TVHNxQzOJ
         sxjLKsnaqxO1IvBPEv7BDYA7HYHbVMviCo47snxityX011iBa0dltRncpIEQW422IvxC
         oRV7D39bXNyOfeh+9s9zKquR6TniVeEA1wj8feixVpSz76ic4w+XBWgnddQr+bIjAmvZ
         OKb2NjXKcjlT8FY5ASEb0L3HsTrI9nrnPNWAaCVCWpQNdeacf9DlP1PvsetYTVlCjVL5
         w4ZQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:in-reply-to:references:mime-version
         :dkim-signature;
        bh=FVg8d9atg0jxIUsj/17k/uPIFo3CcbBzU3TiLifsJrA=;
        b=PxKnG9BXSBESZDt4n5lYYGz/io9WmkUNRsa8K2EHB7ldnxFV/+4IrcGuiUN3Th54cf
         6Ph6B5ys89n5/LGa+RTiQdvk0/uVY3AhISvsTgcFhNjcaZndVM64mBXyJOHzQp+WY/Kq
         JKbjpfHpUo2qmujE7K0I8TU1hkiUvOesrSxI7tk4EWBdBc3CwvBKT+S388chawrWHztm
         gPVNg4ZFuI871KqF3tP7waAtlkLa062728Nfs2SzKlhvRmfCDk1oH/Xa/CJQ0NpHRHvm
         8wJLJJEmMq4rtVnKaXwZZPjwA+lJaBBmOFh3Y8mmDJOdnNefJTz1MwVImzCd3QRO9ZnL
         MJIA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=apfMVtQv;
       spf=pass (google.com: domain of dmilos@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dmilos@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id g184-v6sor718411wmf.24.2018.10.17.00.50.10
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Wed, 17 Oct 2018 00:50:10 -0700 (PDT)
Received-SPF: pass (google.com: domain of dmilos@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a1c:1804:: with SMTP id 4-v6mr1568947wmy.29.1539762609831;
 Wed, 17 Oct 2018 00:50:09 -0700 (PDT)
In-Reply-To: <341708ed-e98b-1744-fbdb-5b1036838323@gmail.com>
X-Original-Sender: dmilos@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=apfMVtQv;       spf=pass
 (google.com: domain of dmilos@gmail.com designates 209.85.220.41 as permitted
 sender) smtp.mailfrom=dmilos@gmail.com;       dmarc=pass (p=NONE
 sp=QUARANTINE 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: <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:40586
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40586>

--00000000000065c3da057867eb56
Content-Type: text/plain; charset="UTF-8"

Yacc( https://en.wikipedia.org/wiki/Yacc ) use that symbol.

I do not like to see $ in C++.

Nicolas Lesser >>  Yeah, but itwas shot down because apparently a lot of
people use $ inside of auto generated C++ or something like that
std::cout << true << std::endl;

On Tue, Oct 16, 2018 at 8:48 PM Matthew Woehlke <mwoehlke.floss@gmail.com>
wrote:

> On 16/10/2018 14.32, Nicolas Lesser wrote:
> > On Tue, Oct 16, 2018 at 8:33 PM Thiago Macieira wrote:
> >> If we allowed
> >>
> >>         if (empty?(y))
> >>
> >> then the parser would need to know that it's not a case of the ternary
> >> operator, so it needs to parse a lot before coming to that conclusion.
> >
> > Not really. There is still the "max-munch" rule. Which is why that would
> > break a bit of code. Your above snippet would be ill-formed with the
> > change, as there is a colon without condition operator.
>
> If you're saying (as I think you are) that keeping the grammar sane
> would mean that an existing identifier followed by `?` with no
> intervening whitespace would, under the proposal, include the `?` as
> part of the identifier, I think that's a clear non-starter. I'd be
> surprised if there isn't a non-trivial amount of existing code that
> would be broken by such a change.
>
> Something else that just occurred to me... at least in the absence of
> non-ASCII characters, C++ identifiers all match /\w+/. Changing that
> could have interesting ramifications...
>
> --
> Matthew
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/341708ed-e98b-1744-fbdb-5b1036838323%40gmail.com
> .
>

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAEfefmwYXdWu1EfYxBmkxbN%3Dn-3WpWqqWx0ApR9DNdgQky-NFA%40mail.gmail.com.

--00000000000065c3da057867eb56
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr">Yacc( <=
a href=3D"https://en.wikipedia.org/wiki/Yacc">https://en.wikipedia.org/wiki=
/Yacc</a> ) use that symbol.</div><div dir=3D"ltr"><br></div><div>I do not =
like to see $=C2=A0in C++.</div><div><br></div><div>Nicolas Lesser &gt;&gt;=
 =C2=A0Yeah, but itwas shot down because apparently a lot of people use $ i=
nside of auto generated C++ or something like that</div><div><font face=3D"=
monospace,monospace">std::cout &lt;&lt; true &lt;&lt; std::endl;</font><br>=
</div></div></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr">On =
Tue, Oct 16, 2018 at 8:48 PM Matthew Woehlke &lt;<a href=3D"mailto:mwoehlke=
..floss@gmail.com">mwoehlke.floss@gmail.com</a>&gt; wrote:<br></div><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex">On 16/10/2018 14.32, Nicolas Lesser wrote:<br>
&gt; On Tue, Oct 16, 2018 at 8:33 PM Thiago Macieira wrote:<br>
&gt;&gt; If we allowed<br>
&gt;&gt;<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (empty?(y))<br>
&gt;&gt;<br>
&gt;&gt; then the parser would need to know that it&#39;s not a case of the=
 ternary<br>
&gt;&gt; operator, so it needs to parse a lot before coming to that conclus=
ion.<br>
&gt; <br>
&gt; Not really. There is still the &quot;max-munch&quot; rule. Which is wh=
y that would<br>
&gt; break a bit of code. Your above snippet would be ill-formed with the<b=
r>
&gt; change, as there is a colon without condition operator.<br>
<br>
If you&#39;re saying (as I think you are) that keeping the grammar sane<br>
would mean that an existing identifier followed by `?` with no<br>
intervening whitespace would, under the proposal, include the `?` as<br>
part of the identifier, I think that&#39;s a clear non-starter. I&#39;d be<=
br>
surprised if there isn&#39;t a non-trivial amount of existing code that<br>
would be broken by such a change.<br>
<br>
Something else that just occurred to me... at least in the absence of<br>
non-ASCII characters, C++ identifiers all match /\w+/. Changing that<br>
could have interesting ramifications...<br>
<br>
-- <br>
Matthew<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%2Bunsubscribe@isocpp.org" target=3D=
"_blank">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">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/341708ed-e98b-1744-fbdb-5b1036838323%=
40gmail.com" rel=3D"noreferrer" target=3D"_blank">https://groups.google.com=
/a/isocpp.org/d/msgid/std-proposals/341708ed-e98b-1744-fbdb-5b1036838323%40=
gmail.com</a>.<br>
</blockquote></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/CAEfefmwYXdWu1EfYxBmkxbN%3Dn-3WpWqqWx=
0ApR9DNdgQky-NFA%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAEfefmwYXdWu1E=
fYxBmkxbN%3Dn-3WpWqqWx0ApR9DNdgQky-NFA%40mail.gmail.com</a>.<br />

--00000000000065c3da057867eb56--

.
