220 31929 <170CB823-B63F-4910-A227-95C23314ADAD@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Alberto Barbati <albertobarbati@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: This variable should not be named: an identifier
 (not) to remember
Date: Sun, 2 Apr 2017 21:56:01 +0200
Lines: 34
Approved: news@gmane.org
Message-ID: <170CB823-B63F-4910-A227-95C23314ADAD@gmail.com>
References: <985b9b2a-c734-45eb-95f4-db4dc0d309a1@isocpp.org> <CAOfiQqnfaqA4YhpNphKg4oPPAMNOe7vPjqxqLvA-EnGjk-pVEA@mail.gmail.com> <1491170458.9U0G8TLsOk@tjmaciei-mobl1>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0 (1.0)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1491162970 26429 195.159.176.226 (2 Apr 2017 19:56:10 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 2 Apr 2017 19:56:10 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCPY5DV6RIMBBVVOQXDQKGQEOWHGLMQ@isocpp.org Sun Apr 02 21:56:06 2017
Return-path: <std-proposals+bncBCPY5DV6RIMBBVVOQXDQKGQEOWHGLMQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f70.google.com ([209.85.215.70])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCPY5DV6RIMBBVVOQXDQKGQEOWHGLMQ@isocpp.org>)
	id 1culbW-00066c-5C
	for gclcip-std-proposals@m.gmane.org; Sun, 02 Apr 2017 21:56:02 +0200
Original-Received: by mail-lf0-f70.google.com with SMTP id n78sf24368585lfi.4
        for <gclcip-std-proposals@m.gmane.org>; Sun, 02 Apr 2017 12:56:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=content-transfer-encoding:from:mime-version:date:message-id:subject
         :in-reply-to:references: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=dHZ2JhzNcUQEgJcd7Fxu53KeQOyHo1NUIAEexeHVINo=;
        b=qVn4rPr4i0yALRHXMDVZiIYYewq6ZaqBidr4UmAHhKoGqLDMw0rBUM49KpXnOA8kKx
         XvLSMkNXJH+R4arqkxewDToI2Bp7qOARf7QjECCGFK6bb/GFlb4jw34tImsJFIhtxdkn
         V+lPbp6Z759T/FvQa9RYIpSrWzHq/cT1gyXGx3x+V+rWSY43gUw4phMNeYQqgm4qpGGL
         K1GpttWj1zaVjC3gfiu5q60aGbGjaV98ZZZSzx0ywMRDz4C1S+Z6PWIeX2abLa3qDiHM
         UYYe+p+A8g36mPx3CzHSSS4eqA3NrRfX4cdC/c/gyoXihjvbXFCc5ZHRlrV3Y95wX+Mz
         9CZg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:content-transfer-encoding:from:mime-version:date
         :message-id:subject:in-reply-to:references: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=dHZ2JhzNcUQEgJcd7Fxu53KeQOyHo1NUIAEexeHVINo=;
        b=gH47mf3BHQ1rgkfS/u7FtRJPeDcLZsVWDBGcZ22tetLhzIC8mDBUYnx8JcYDGjqbxq
         cMpctVtEnvXXkxWdR9+AQlViS9ZyzY9Hhjv5fXrc/VZVbJdtOHNzDgzykbAxMdxPCIFU
         8y+yrspXuUpD/02ZR/EdnMCBdDOPw/EXCmMX0lzHZJw6O+TP5pEzah8QpecS+Xjd8OXx
         cx+Ofc81D/yIq1NFdiMjm45KVyfig2g03f2wKt0qsJUGrmrmKtEThq1Eccv5U+J8XPVC
         k2zrNjuGl+cft1e6gT2YPBnBBRP4NZGxHAvI5zN4yRBoXfbi4PcgPcG0dAhTdM23HZrK
         vHI 
X-Gm-Message-State: AFeK/H13dHXZ0cLPI4tlt1OXPch+R8DRRZcl9qYnwzQxquxJSM+PAgnu2lTl0Od0YKOjPA==
X-Received: by 10.25.80.88 with SMTP id z24mr1767775lfj.29.1491162968321;
        Sun, 02 Apr 2017 12:56:08 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.136.5 with SMTP id k5ls540719wmd.17.gmail; Sun, 02 Apr 2017
 12:56:06 -0700 (PDT)
X-Received: by 10.223.152.43 with SMTP id v40mr11617080wrb.60.1491162966739;
        Sun, 02 Apr 2017 12:56:06 -0700 (PDT)
Original-Received: from mail-wr0-x22b.google.com (mail-wr0-x22b.google.com. [2a00:1450:400c:c0c::22b])
        by mx.google.com with ESMTPS id a128si12290120wmc.82.2017.04.02.12.56.06
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sun, 02 Apr 2017 12:56:06 -0700 (PDT)
Received-SPF: pass (google.com: domain of albertobarbati@gmail.com designates 2a00:1450:400c:c0c::22b as permitted sender) client-ip=2a00:1450:400c:c0c::22b;
Original-Received: by mail-wr0-x22b.google.com with SMTP id w11so141421097wrc.3
        for <std-proposals@isocpp.org>; Sun, 02 Apr 2017 12:56:06 -0700 (PDT)
X-Received: by 10.28.146.207 with SMTP id u198mr6471736wmd.103.1491162966061;
        Sun, 02 Apr 2017 12:56:06 -0700 (PDT)
Original-Received: from [1.141.192.41] ([91.253.144.23])
        by smtp.gmail.com with ESMTPSA id n5sm11408858wmf.14.2017.04.02.12.56.05
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sun, 02 Apr 2017 12:56:05 -0700 (PDT)
In-Reply-To: <1491170458.9U0G8TLsOk@tjmaciei-mobl1>
X-Mailer: iPhone Mail (14D27)
X-Original-Sender: AlbertoBarbati@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 albertobarbati@gmail.com designates 2a00:1450:400c:c0c::22b as permitted
 sender) smtp.mailfrom=albertobarbati@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:31929
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/31929>

Il giorno 02 apr 2017, alle ore 20:03, Thiago Macieira <thiago@macieira.org=
> ha scritto:

>> On s=C3=A1bado, 1 de abril de 2017 21:19:37 PDT Richard Smith wrote:
>> Have you considered that possibility? It would give a better name (_ rat=
her
>> than __) and avoid "breaking" existing code that uses __.
>=20
> _ is not reserved to the compiler and is VERY often #defined to gettext.

Thank you Richard for your suggestion which is very interesting, since it p=
rovides good insights about a possible wording. As for the name, I believe =
Thiago and Magnus raised valid concerns, though. It's true that the we migh=
t choose _ without breaking existing code. However defining _ as a macro is=
 currently valid and apparently widely used. I believe we therefore have on=
ly two choices: either we make such uses undefined behavior (upsetting a lo=
t of people) or we choose wording to avoid that (making the feature essenti=
ally unusable for users of all libraries like gettext). None of the two app=
roaches seems very good. Is there a third option?

__ seems somewhat safer and less controversial.

Alberto

--=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/170CB823-B63F-4910-A227-95C23314ADAD%40gmail.com=
..

.
