220 31812 <2009881.g1rS942AcB@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: This variable should not be named: an identifier
 (not) to remember
Date: Tue, 28 Mar 2017 09:16:37 -0700
Lines: 35
Approved: news@gmane.org
Message-ID: <2009881.g1rS942AcB@tjmaciei-mobl1>
References: <985b9b2a-c734-45eb-95f4-db4dc0d309a1@isocpp.org> <3421677.yAxhhm3ryH@tjmaciei-mobl1> <CAF3xnJRtyCRSqc5dh7fpf1pSQem_Lw4SbePQxY3dBC_xEEisEg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1490717811 31930 195.159.176.226 (28 Mar 2017 16:16:51 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 28 Mar 2017 16:16:51 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRB34Y5LDAKGQE4J63X4I@isocpp.org Tue Mar 28 18:16:46 2017
Return-path: <std-proposals+bncBCB4TK757YBRB34Y5LDAKGQE4J63X4I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vk0-f70.google.com ([209.85.213.70])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRB34Y5LDAKGQE4J63X4I@isocpp.org>)
	id 1cstnW-0007Sb-IS
	for gclcip-std-proposals@m.gmane.org; Tue, 28 Mar 2017 18:16:42 +0200
Original-Received: by mail-vk0-f70.google.com with SMTP id j137sf58879161vke.3
        for <gclcip-std-proposals@m.gmane.org>; Tue, 28 Mar 2017 09:16:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:in-reply-to:references:mime-version
         :content-transfer-encoding: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=x68K2d3zTfK4+kN2YPBxiSbN0LTenzClbPY/9oD+Re4=;
        b=RHdKqvNk3m1RYYtO35OwaNu50Bi6Q5ne6c7FCX6xLDwx0mkw55TlZqB+xX0/8Qv30c
         tJXUbW/jdBoOIg1YGU33Qa1nCTNXYypTL3+8EkkCq0GG66plqDEK4mgmTfFLBxp03lSi
         YeqSig5Gyc6gPwqMbOqDKJ5jvq57zCvEQykFS2SPkoGfXetSCBVBOYj2gvr18M0xLBhi
         BHuSAs2SfrE751YY+wSUoP2THOKw9z9HsVHX5hZ8jPwO4lTg70KTpdPkYnjldvPuehI9
         mTCZOI4RnDG46KC5e1cBzKC5U0DyYy2KDjqBW6xvl3ESg7B3EcsIGn2PiQkLVm+dRJKD
         UFtA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version:content-transfer-encoding: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=x68K2d3zTfK4+kN2YPBxiSbN0LTenzClbPY/9oD+Re4=;
        b=NZdzsAnfdeWYmFRe0t88BjivPa9VVu7fz1azjZcF+mwnxa0aLQJei2SAPsGuK9axLf
         l/Aqr99mFx/LlJMpdNFtgnrHUIcbmB7kFkxLkBRUhCDh7quz8IcDD1MY5rs+H0mzY3tc
         ubot9BEKayXcw7q8jS6B+kWaVAiAWd2E30A1E8GMhr3gizFTrUsXtexNfE1F8w3aWkzl
         rbZB6mt9ajhWSLEVlvYoQFFfSXdd+mQzEPCzovQ3xwaOtH3N+Q8DaWkhGeNgPnGZn7W9
         a2EwZHE5Whw5bNmNaVXcSI5xyqf5pkT+yXmBD2u7mf48sFRsPHK3dyIu+TV2EPfJwEky
         xXO 
X-Gm-Message-State: AFeK/H2N5PP2HUR5W0DlvsDRQiVmjDeKlLbX4RiWSO2XA6ARX2BwWYCnVpJ8BdEwtPHLbg==
X-Received: by 10.159.55.145 with SMTP id q17mr8388253uaq.39.1490717808457;
        Tue, 28 Mar 2017 09:16:48 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.48.22 with SMTP id d22ls3043532otc.43.gmail; Tue, 28 Mar
 2017 09:16:47 -0700 (PDT)
X-Received: by 10.13.209.70 with SMTP id t67mr20730454ywd.148.1490717807445;
        Tue, 28 Mar 2017 09:16:47 -0700 (PDT)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id y83si1504788ywy.344.2017.03.28.09.16.47
        for <std-proposals@isocpp.org>;
        Tue, 28 Mar 2017 09:16:47 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl1.localnet (unknown [134.134.139.78])
	by gondolin.macieira.info (Postfix) with ESMTPSA id AE42911B827
	for <std-proposals@isocpp.org>; Tue, 28 Mar 2017 09:16:45 -0700 (PDT)
In-Reply-To: <CAF3xnJRtyCRSqc5dh7fpf1pSQem_Lw4SbePQxY3dBC_xEEisEg@mail.gmail.com>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mailfrom=thiago@macieira.org
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:31812
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/31812>

On ter=C3=A7a-feira, 28 de mar=C3=A7o de 2017 02:09:54 PDT Alberto Barbati =
wrote:
> In this particular instance, V8's programmer could and probably should ha=
ve
> used a non-reserved name (for example "m_" would have been a better choic=
e
> regardless). Even the choice of _Nullable was ill-conceived, since
> identifiers beginning with an underscore and an uppercase letter are also
> reserved.

The reason for __ is that it looks unintrusive, which allows for code=20
generation in a way that is easy to read:

  // Fetch the instance type of the receiver into result register.
  __ movp(result, FieldOperand(string, HeapObject::kMapOffset));
  __ movzxbl(result, FieldOperand(result, Map::kInstanceTypeOffset));

  // We need special handling for indirect strings.
  Label check_sequential;
  __ testb(result, Immediate(kIsIndirectStringMask));
  __ j(zero, &check_sequential, Label::kNear);

--=20
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

--=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/2009881.g1rS942AcB%40tjmaciei-mobl1.

.
