220 31830 <58DA9D90.6020207@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: Tue, 28 Mar 2017 13:29:52 -0400
Lines: 40
Approved: news@gmane.org
Message-ID: <58DA9D90.6020207@gmail.com>
References: <985b9b2a-c734-45eb-95f4-db4dc0d309a1@isocpp.org>
 <14211602.1P4LjlnQMh@tjmaciei-mobl1>
 <CAGsORuBepjjTQxa0w+9Z_v+irrc6QwxqmUv98dTRarUCVHHY+A@mail.gmail.com>
 <8028901.3vRB6vfJZY@tjmaciei-mobl1>
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 1490722203 32080 195.159.176.226 (28 Mar 2017 17:30:03 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 28 Mar 2017 17:30:03 +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+bncBC37LBFWUIFBBE535LDAKGQECVXE6PI@isocpp.org Tue Mar 28 19:29:58 2017
Return-path: <std-proposals+bncBC37LBFWUIFBBE535LDAKGQECVXE6PI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qt0-f197.google.com ([209.85.216.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC37LBFWUIFBBE535LDAKGQECVXE6PI@isocpp.org>)
	id 1csuwJ-0007Hf-9N
	for gclcip-std-proposals@m.gmane.org; Tue, 28 Mar 2017 19:29:51 +0200
Original-Received: by mail-qt0-f197.google.com with SMTP id p50sf59196685qtc.9
        for <gclcip-std-proposals@m.gmane.org>; Tue, 28 Mar 2017 10:29:57 -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: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=B/u9X+rJGQkJZfoal521SqKD3nGfBTcGYjlGz6F2Nco=;
        b=msaNkqUe5PnqWJpxtFunrcadnuTFCZO6pjrlaAtdia9d2zWealWoOsrmnMjLJGJhs9
         1IgRACjYxJPxshiHjrSoqj5tJqDxAtWWKR3NzSmvqIY2Uv3tOkv9l9ZB3fn5ooH8yuJO
         6LkZh5Y34+DO/SAZpEAfkzG3ou7I3idkFIdYxjt7FbwgZYRhDus0mxZtp9HJEAUk/oEL
         5buxl9UZTfK3LPMJQ9WDZbda3OyxUxQKXgLrsFd2GWp68dCsoRXTPBZLtjtKOoZTN0jt
         PEWnCnBn69uRMi8ycD2yb3AboM/n3eAOBaHKyPkePYHkD2r2xMlvg/P05ih2ZR2 
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: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=B/u9X+rJGQkJZfoal521SqKD3nGfBTcGYjlGz6F2Nco=;
        b=I6lNSPqCqQFxOGo5WOOALvboKzxcknM67NuMUW1mjsbN9Oqje2vfoB9kYQcdDh9K1F
         J/D07fRPUwgrcKGUC/rE5TAfRVgThgKoJ1mIKmkXKKqvUw+zhHfVB4Q3StUCxcX1BZdB
         s6qWSO8h3yIWALbTf980Ep6/SYUnbuMVRA/vgEH2s53d/lNhw7c/astITT3XQy5/56Ww
         KjkPeZkyvB0pkvaz+QdPIltCuHPtofSUmxVza98oUkFuDluwsYRbcnzS0MHOFYcHETT9
         5xFFlbzvK3BFgIJTHx5+XSYur02t6WbXkpdnVMSaQfRNfsm12CM/r/oWk+B 
X-Gm-Message-State: AFeK/H2hZxbUro1skGGNbo3GM+B6fD9VCvlChdM2CdGawfoAwoXb986DCkBdevihedJp2g==
X-Received: by 10.200.48.218 with SMTP id w26mr9482121qta.42.1490722197146;
        Tue, 28 Mar 2017 10:29:57 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.36.107.18 with SMTP id v18ls2585609itc.7.canary-gmail; Tue, 28
 Mar 2017 10:29:55 -0700 (PDT)
X-Received: by 10.36.76.11 with SMTP id a11mr17906576itb.60.1490722195668;
        Tue, 28 Mar 2017 10:29:55 -0700 (PDT)
Original-Received: from mail-it0-x231.google.com (mail-it0-x231.google.com. [2607:f8b0:4001:c0b::231])
        by mx.google.com with ESMTPS id z80si4989441ioz.49.2017.03.28.10.29.55
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 28 Mar 2017 10:29:55 -0700 (PDT)
Received-SPF: pass (google.com: domain of mwoehlke.floss@gmail.com designates 2607:f8b0:4001:c0b::231 as permitted sender) client-ip=2607:f8b0:4001:c0b::231;
Original-Received: by mail-it0-x231.google.com with SMTP id 76so14519162itj.0
        for <std-proposals@isocpp.org>; Tue, 28 Mar 2017 10:29:55 -0700 (PDT)
X-Received: by 10.107.182.9 with SMTP id g9mr25348804iof.233.1490722195343;
        Tue, 28 Mar 2017 10:29:55 -0700 (PDT)
Original-Received: from [192.168.1.176] (tripoint.kitware.com. [66.194.253.20])
        by smtp.googlemail.com with ESMTPSA id y124sm1813413itd.19.2017.03.28.10.29.54
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 28 Mar 2017 10:29:54 -0700 (PDT)
Original-Newsgroups: gmane.comp.lang.c++.isocpp.proposals
In-Reply-To: <8028901.3vRB6vfJZY@tjmaciei-mobl1>
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:4001:c0b::231 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:31830
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/31830>

On 2017-03-28 13:03, Thiago Macieira wrote:
> On ter=C3=A7a-feira, 28 de mar=C3=A7o de 2017 09:53:51 PDT Zhihao Yuan wr=
ote:
>>   auto [__, __] =3D get_tuple(...);
>>
>> should be physically equivalent to
>>
>>   get_tuple(...);
>>
>> thus, the result object is dropped on the floor.
>=20
> This should be equivalent to:
>=20
> 	auto __ =3D get_tuple(...);

I would argue it should be equivalent to:

  auto __magic__ =3D get_tuple(...); // note: same as today
  auto __ =3D get<0>(__magic__);
  auto __ =3D get<1>(__magic__);

....so that in case of side effects, there is no observable behavior
difference. (The compiler is free to elide bits of the above if there
are provably no side effects.)

This almost makes me think we need "unnamed" and "ignored" to be
implemented separately :'(...

--=20
Matthew

--=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/58DA9D90.6020207%40gmail.com.

.
