220 31787 <CACL3gUVC1R9occL7vwiNTb9s4rD-+aemb4AprquTjQvr-xRjwg@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Christopher Di Bella <cjdb.ns@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: This variable should not be named: an identifier
 (not) to remember
Date: Mon, 27 Mar 2017 20:51:10 +0000
Lines: 112
Approved: news@gmane.org
Message-ID: <CACL3gUVC1R9occL7vwiNTb9s4rD-+aemb4AprquTjQvr-xRjwg@mail.gmail.com>
References: <985b9b2a-c734-45eb-95f4-db4dc0d309a1@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=94eb2c122e4e760c2d054bbc817e
X-Trace: blaine.gmane.org 1490647890 30549 195.159.176.226 (27 Mar 2017 20:51:30 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 27 Mar 2017 20:51:30 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCL55NVFWILRBSXW4XDAKGQEHX32AHA@isocpp.org Mon Mar 27 22:51:23 2017
Return-path: <std-proposals+bncBCL55NVFWILRBSXW4XDAKGQEHX32AHA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-it0-f71.google.com ([209.85.214.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCL55NVFWILRBSXW4XDAKGQEHX32AHA@isocpp.org>)
	id 1csbbg-0006zF-TN
	for gclcip-std-proposals@m.gmane.org; Mon, 27 Mar 2017 22:51:17 +0200
Original-Received: by mail-it0-f71.google.com with SMTP id o81sf76624577itg.2
        for <gclcip-std-proposals@m.gmane.org>; Mon, 27 Mar 2017 13:51:23 -0700 (PDT)
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:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=oKTd3isdoxMvR++3o9wkanx+rYlLzZDbOCxL7RMeGCg=;
        b=BpSG9Hfg+dIddaMVUnfONZxHJPXfLO2UvzOVS2HaaOmmbWroHVNEPsi1/GCrHMAhaL
         hxn9vBgpJ6ZEro+bJPoi6u5cNYRJhq46OZp0CiTgSlWgao9sGnYDLTRIR+j44ph29tI5
         0fvzuHBfsu0g+bQcrGY6PYtyT3vsK46DaBtpJCbwjB6pW56b5x5TnC2oe9W5aexqRkMt
         eqR3qZLlGM2xpUNMu6u9RNlyex5JpWZNH2RcE+UDaYiykLTRTcAdB7Z2LWLFodRzOs4Z
         9aQajtcpCzYeh/G0qQakGGgmELPVUoM6dxIjL3BKFTboKhpZSvmn/8BTk04heIM2DtRG
         u2yQ==
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=oKTd3isdoxMvR++3o9wkanx+rYlLzZDbOCxL7RMeGCg=;
        b=qd8WN/Euj7J/Q3vTdgtARugvCJeH0WffvOPJdWs8+WS9suCdcHIUTQ6LQASfZ1hzns
         uj7KRWO6f+12w9hL0A77voOdFKWFKCqiMtQPgGM8hEtEBDTaVudG0KCULy8CCEc15G1U
         7fKIXDQHHs6Gmvj7rxd5KEik9XDYEtLMSIU9veKusb5wntPzOWKwaZULnVIW88Q4DIWC
         AEmLdtzxAdYXlBcz75avkoUOv/+T1r4/W4zCQduWaXm1AhXyZQ8ODaEtTEgjlwk32gkX
         xeAQPGp1U6YDLBkFtCoVm+4VyVhZFPzDX7UXUk0y7NxlP5Y7mB0wipgsLZGLOuysM/BR
         PaLg==
X-Gm-Message-State: AFeK/H2xqJDeJtxZWcxkey1zHHuN2KfVe8DWLHxwqsNG5+I44DGJpEgZcC3Xf1BvmvU0Xg==
X-Received: by 10.107.16.170 with SMTP id 42mr7597699ioq.91.1490647882821;
        Mon, 27 Mar 2017 13:51:22 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.39.226 with SMTP id c89ls11093000otb.2.gmail; Mon, 27 Mar
 2017 13:51:22 -0700 (PDT)
X-Received: by 10.159.34.120 with SMTP id 111mr5889308uad.87.1490647882042;
        Mon, 27 Mar 2017 13:51:22 -0700 (PDT)
Original-Received: from mail-vk0-x233.google.com (mail-vk0-x233.google.com. [2607:f8b0:400c:c05::233])
        by mx.google.com with ESMTPS id x184si703901vkg.129.2017.03.27.13.51.21
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 27 Mar 2017 13:51:22 -0700 (PDT)
Received-SPF: pass (google.com: domain of cjdb.ns@gmail.com designates 2607:f8b0:400c:c05::233 as permitted sender) client-ip=2607:f8b0:400c:c05::233;
Original-Received: by mail-vk0-x233.google.com with SMTP id s68so66725603vke.3
        for <std-proposals@isocpp.org>; Mon, 27 Mar 2017 13:51:21 -0700 (PDT)
X-Received: by 10.176.64.34 with SMTP id h31mr3342041uad.89.1490647881483;
 Mon, 27 Mar 2017 13:51:21 -0700 (PDT)
In-Reply-To: <985b9b2a-c734-45eb-95f4-db4dc0d309a1@isocpp.org>
X-Original-Sender: cjdb.ns@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of cjdb.ns@gmail.com
 designates 2607:f8b0:400c:c05::233 as permitted sender) smtp.mailfrom=cjdb.ns@gmail.com;
       dmarc=pass (p=NONE sp=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: <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:31787
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/31787>

--94eb2c122e4e760c2d054bbc817e
Content-Type: text/plain; charset=UTF-8

Hi,

Thanks for taking the time out to write this! It seems like there is
motivation, but I can't quite place my finger on it. If a variable isn't
going to be used again, and can't be referenced, what are the benefits of
its persistence have over `Foo{bar};`?

Cheers,

Chris

On Tue., 28 Mar. 2017, 07:27 Alberto Barbati, <albertobarbati@gmail.com>
wrote:

> Hello,
>
> this is a draft for a proposal to add a special meaning to the identifier
> __ (double underscore) so that it can be used (even repeatedly in the same
> lexical scope) for all variables whose name is not important and that is no
> longer needed after declaration. The draft includes a few examples.
>
> Is there any interest in this?
>
> Thanks in advance,
>
> Alberto
>
> --
> 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/985b9b2a-c734-45eb-95f4-db4dc0d309a1%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/985b9b2a-c734-45eb-95f4-db4dc0d309a1%40isocpp.org?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CACL3gUVC1R9occL7vwiNTb9s4rD-%2Baemb4AprquTjQvr-xRjwg%40mail.gmail.com.

--94eb2c122e4e760c2d054bbc817e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">Hi,</p>
<p dir=3D"ltr">Thanks for taking the time out to write this! It seems like =
there is motivation, but I can&#39;t quite place my finger on it. If a vari=
able isn&#39;t going to be used again, and can&#39;t be referenced, what ar=
e the benefits of its persistence have over `Foo{bar};`?</p>
<p dir=3D"ltr">Cheers,</p>
<p dir=3D"ltr">Chris </p>
<br><div class=3D"gmail_quote"><div dir=3D"ltr">On Tue., 28 Mar. 2017, 07:2=
7 Alberto Barbati, &lt;<a href=3D"mailto:albertobarbati@gmail.com">albertob=
arbati@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" =
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><di=
v dir=3D"ltr" class=3D"gmail_msg">Hello,<br class=3D"gmail_msg"><br class=
=3D"gmail_msg">this is a draft for a proposal to add a special meaning to t=
he identifier __ (double underscore) so that it can be used (even repeatedl=
y in the same lexical scope) for all variables whose name is not important =
and that is no longer needed after declaration. The draft includes a few ex=
amples.<br class=3D"gmail_msg"><br class=3D"gmail_msg">Is there any interes=
t in this?<br class=3D"gmail_msg"><br class=3D"gmail_msg">Thanks in advance=
,<br class=3D"gmail_msg"><br class=3D"gmail_msg">Alberto<br class=3D"gmail_=
msg"><br class=3D"gmail_msg"></div>

<p class=3D"gmail_msg"></p>

-- <br class=3D"gmail_msg">
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br class=3D"gmail_msg=
">
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" class=3D"gm=
ail_msg" target=3D"_blank">std-proposals+unsubscribe@isocpp.org</a>.<br cla=
ss=3D"gmail_msg">
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" class=3D"gmail_msg" target=3D"_blank">std-proposals@isocpp.org</a>.<b=
r class=3D"gmail_msg">
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/985b9b2a-c734-45eb-95f4-db4dc0d309a1%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" class=3D"gmail_msg=
" target=3D"_blank">https://groups.google.com/a/isocpp.org/d/msgid/std-prop=
osals/985b9b2a-c734-45eb-95f4-db4dc0d309a1%40isocpp.org</a>.<br class=3D"gm=
ail_msg">
</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/CACL3gUVC1R9occL7vwiNTb9s4rD-%2Baemb4=
AprquTjQvr-xRjwg%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CACL3gUVC1R9occ=
L7vwiNTb9s4rD-%2Baemb4AprquTjQvr-xRjwg%40mail.gmail.com</a>.<br />

--94eb2c122e4e760c2d054bbc817e--

.
