220 31978 <58E2A8A0.3010100@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: This variable should not be named: an identifier
 (not) to remember
Date: Mon, 3 Apr 2017 15:55:12 -0400
Lines: 24
Approved: news@gmane.org
Message-ID: <58E2A8A0.3010100@gmail.com>
References: <985b9b2a-c734-45eb-95f4-db4dc0d309a1@isocpp.org>
 <CAOfiQqnfaqA4YhpNphKg4oPPAMNOe7vPjqxqLvA-EnGjk-pVEA@mail.gmail.com>
 <1491170458.9U0G8TLsOk@tjmaciei-mobl1>
 <CAOfiQqmkjfEqEQpbxWnaLfibTpRTKJdF2UN8M60pL38Qg5s43g@mail.gmail.com>
 <10c2c556-b6bb-4714-83bc-7b0ac8fd4143@isocpp.org>
 <CAOfiQq=rWc3pUeEf3Jo-H-oGJQnyVvRwmqaOPYC7v2WJDMeHDg@mail.gmail.com>
 <1380e942-6c0c-4bae-9042-d3e5064e96d8@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: blaine.gmane.org 1491249323 31973 195.159.176.226 (3 Apr 2017 19:55:23 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 3 Apr 2017 19:55:23 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.1.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC37LBFWUIFBBI6RRLDQKGQEWBN2ZVA@isocpp.org Mon Apr 03 21:55:18 2017
Return-path: <std-proposals+bncBC37LBFWUIFBBI6RRLDQKGQEWBN2ZVA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-it0-f70.google.com ([209.85.214.70])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC37LBFWUIFBBI6RRLDQKGQEWBN2ZVA@isocpp.org>)
	id 1cv84E-00078T-MO
	for gclcip-std-proposals@m.gmane.org; Mon, 03 Apr 2017 21:55:10 +0200
Original-Received: by mail-it0-f70.google.com with SMTP id h186sf39525642ith.10
        for <gclcip-std-proposals@m.gmane.org>; Mon, 03 Apr 2017 12:55:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=subject:to:references:newsgroups:from:message-id:date:user-agent
         :mime-version: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=2vKAM6S+fjYftDo2YKOlFnGWdbufOn50hFjGvU4GqYw=;
        b=KZVrq8AFSu4N8eax4mp+N55sQ4MA/Bki17HjJelYcn1oye4PmObwj/yqs+founSY8H
         Wnq5eXuwZDq3xgAjaFJAjYi1JeU/rEXne8K/b4JJTZtgBXOlBidLMFmLQ5ngbVTz+gfp
         TnhHz3uuy5+6HPc5lsthsiuByg/AkiiAFuWxRjT2GP7nDtJR/RwasyVAxdWOdZ4f42vx
         HpU3mbWQ0kU5GsnAefhttlhx5SYa7BNPkFAHqyZdzXJ47rRm9sz/+e3TLUI2opjhDGKL
         7woUaJ5GoaW06mje2gOM+y661NkDmURWccmTzwEJ/4zq5GiPclX45/K8nndvIa/dv2qU
         1mtQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:references:newsgroups:from:message-id
         :date:user-agent:mime-version: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=2vKAM6S+fjYftDo2YKOlFnGWdbufOn50hFjGvU4GqYw=;
        b=SM/CSYu4ZNQHkpP6Pg+c7BOQS5Iiz3HPdGJ9uiMotGTczFJ1TtLBDGopYxMrP4JxzB
         qipyauAw4VZ5Lx6uvRnexCjG4L78D0Gfcb2AjrT0kC2DafzrlItIR8dZQN6AFQS9KVXo
         TWYLAxAWUba/KCbL8g4JKfbRg2U/Tn8eWFsp4DkPsfsCdE2/o1rL4VXhM2mxHLtnm1H/
         5K5uTISRLCQZT78PR3QP1ApyKa7AePFMKmzmsZt3x8vNRNP9Ytmkg61HcxHdq4reuyzr
         SiCIHjP79G6qCaNAGB3AU/Eoc37gPiUsh9XFd4RfxYIIqKIRYN0g4BJptxI4tbo/d+RB
         S+KA==
X-Gm-Message-State: AFeK/H10Uz8WwV+jAhEbiAcjJBjMP3SZPTyH8YYa90pFxb1HBBPJZFYO2ybukau88swSOA==
X-Received: by 10.36.125.144 with SMTP id b138mr3514505itc.10.1491249316500;
        Mon, 03 Apr 2017 12:55:16 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.39.226 with SMTP id c89ls2116445otb.2.gmail; Mon, 03 Apr
 2017 12:55:15 -0700 (PDT)
X-Received: by 10.157.32.22 with SMTP id n22mr4060176ota.269.1491249315740;
        Mon, 03 Apr 2017 12:55:15 -0700 (PDT)
Original-Received: from mail-oi0-x22f.google.com (mail-oi0-x22f.google.com. [2607:f8b0:4003:c06::22f])
        by mx.google.com with ESMTPS id s84si7016685oig.199.2017.04.03.12.55.15
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 03 Apr 2017 12:55:15 -0700 (PDT)
Received-SPF: pass (google.com: domain of mwoehlke.floss@gmail.com designates 2607:f8b0:4003:c06::22f as permitted sender) client-ip=2607:f8b0:4003:c06::22f;
Original-Received: by mail-oi0-x22f.google.com with SMTP id d2so6314653oig.1
        for <std-proposals@isocpp.org>; Mon, 03 Apr 2017 12:55:15 -0700 (PDT)
X-Received: by 10.157.5.161 with SMTP id 30mr9603357otd.229.1491249315273;
        Mon, 03 Apr 2017 12:55:15 -0700 (PDT)
Original-Received: from [192.168.1.176] (tripoint.kitware.com. [66.194.253.20])
        by smtp.googlemail.com with ESMTPSA id c42sm7221306ote.57.2017.04.03.12.55.13
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 03 Apr 2017 12:55:14 -0700 (PDT)
Original-Newsgroups: gmane.comp.lang.c++.isocpp.proposals
In-Reply-To: <1380e942-6c0c-4bae-9042-d3e5064e96d8@isocpp.org>
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 mwoehlke.floss@gmail.com designates 2607:f8b0:4003:c06::22f as permitted
 sender) smtp.mailfrom=mwoehlke.floss@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:31978
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/31978>

On 2017-04-03 15:37, Barry Revzin wrote:
> I think the logical extreme of this idea is to not pick any identifier at 
> all - simply allow hiding declarations in the same scope. So from the 
> original paper's examples, using __ to declare multiple variables in the 
> same scope just works not because of some special magic bestowed upon the 
> identifier "__", but instead because you're actually declaring multiple 
> variables in the same scope named "__". You'd have no way of accessing the 
> earlier versions of __, but then you don't want to anyway. I don't know how 
> to get the compiler to not warn against not using the last incarnation of 
> __ though. That just may be a "teach the compiler that this is a convention 
> that people want to use" kind of thing. 

That seems like a recipe for bugs. We have enough problems with -Wshadow
as it is, let alone making the situation *worse*...

-- 
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/58E2A8A0.3010100%40gmail.com.

.
