220 24587 <naf9ro$36k$2@ger.gmane.org> article
Path: news.gmane.org!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: throwaway variable
Date: Mon, 22 Feb 2016 10:35:20 -0500
Lines: 26
Approved: news@gmane.org
Message-ID: <naf9ro$36k$2@ger.gmane.org>
References: <9658e852-6254-4ecf-a6d4-879160d4de7d@isocpp.org>	<CAKiZDp0Q9VFSd9ONVDH8hJdhcFQ8daU12yLCSXB69UcRBcMj3Q@mail.gmail.com> <CAA7YVg1T2WQM5fzckDE5oczmAycJt-cibZ_iYvWp4SzgkGLpQQ@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1456155616 10249 80.91.229.3 (22 Feb 2016 15:40:16 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 22 Feb 2016 15:40:16 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC37LBFWUIFBBVWXVS3AKGQEE4RCMRQ@isocpp.org Mon Feb 22 16:40:09 2016
Return-path: <std-proposals+bncBC37LBFWUIFBBVWXVS3AKGQEE4RCMRQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f71.google.com ([209.85.215.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC37LBFWUIFBBVWXVS3AKGQEE4RCMRQ@isocpp.org>)
	id 1aXsal-0006Xa-Fz
	for gclcip-std-proposals@m.gmane.org; Mon, 22 Feb 2016 16:40:07 +0100
Original-Received: by mail-lf0-f71.google.com with SMTP id j99sf49567887lfi.1
        for <gclcip-std-proposals@m.gmane.org>; Mon, 22 Feb 2016 07:40:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=to:from:subject:date:lines:message-id:references:mime-version
         :content-type:content-transfer-encoding:user-agent: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=dyPOfByj5W05GTBMZhPfmToQGgNbzv2fM4tJJm7daNQ=;
        b=Qa3YoKoSBw4qRtXAq+08nVHyocyNeV4kvLwkP5rqeFhjd3KIQd3jrzJZK4DUCDrgVI
         RJicsnG/iyptM30pmjGA19mvWGIaQMISvIkX+uK9KseudY7yC+gV1Z7IcN0Ug/AkrpZL
         yUs673WQT0ieRTjH7JZNdXRHifuwq8S+pzEaGJzH2EabnfO2jNTuszBTHiWF/G0cxFCo
         0vGOUR1jrwI7PyN5HTu8gZVnOCyemhdBZHFZdfMxo9yQvsm4Ek0LHg9tShwXxDc8fl/w
         hLt0rfYK2C/oZk9hvsMN44zNKh/0e7URFacw8cPzrO71UxVe0P4Kbqj 
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:content-type:content-transfer-encoding:user-agent
         :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=dyPOfByj5W05GTBMZhPfmToQGgNbzv2fM4tJJm7daNQ=;
        b=Ej+WmVvFh2TGXyxbsaPonorig90eYjnldKDC9fr+GJ1sllskqXw9Q953fxXVNGCduM
         hoUNjyHYxcOmUnkpDnfEe7ITX31Wuzslygd6mmobOGVwEXOhQZplYmfPQYmGOJnUAl11
         ZMZb5Lh68KefoiPA2iFJIBCbdhI80T9Wk5i/QCavznlQpFkfYaAPL07nmXFW2sW0hXb3
         MbwVq8L0HGk+ikLgh0vZzso3OSSOXCLCJT0bScG29W1UQTY8d1uzIAXC74Q+BnSYPyeN
         a0x9CZiSO4oz41aHmw+PaL8/ZeG05oensOKV6LHt4YqHoIQOEkw 
X-Gm-Message-State: AG10YOTMebg7+zOTeSzaVpoOEtyfOb7Y+u80mJfK4AMZeN0SXPmqO+GUMxpgHQOQ/qeqtg==
X-Received: by 10.194.85.169 with SMTP id i9mr3494608wjz.4.1456155607009;
        Mon, 22 Feb 2016 07:40:07 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.25.145.149 with SMTP id t143ls283237lfd.105.gmail; Mon, 22 Feb
 2016 07:40:05 -0800 (PST)
X-Received: by 10.112.139.104 with SMTP id qx8mr10348359lbb.88.1456155605685;
        Mon, 22 Feb 2016 07:40:05 -0800 (PST)
Original-Received: from plane.gmane.org (plane.gmane.org. [80.91.229.3])
        by mx.google.com with ESMTPS id jc5si13633011lbc.197.2016.02.22.07.40.05
        for <std-proposals@isocpp.org>
        (version=TLS1 cipher=AES128-SHA bits=128/128);
        Mon, 22 Feb 2016 07:40:05 -0800 (PST)
Received-SPF: pass (google.com: domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as permitted sender) client-ip=80.91.229.3;
Original-Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1aXsah-0006Se-7o
	for std-proposals@isocpp.org; Mon, 22 Feb 2016 16:40:03 +0100
Original-Received: from tripoint.kitware.com ([66.194.253.20])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Mon, 22 Feb 2016 16:40:03 +0100
Original-Received: from mwoehlke.floss by tripoint.kitware.com with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Mon, 22 Feb 2016 16:40:03 +0100
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 15
Original-X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: tripoint.kitware.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
In-Reply-To: <CAA7YVg1T2WQM5fzckDE5oczmAycJt-cibZ_iYvWp4SzgkGLpQQ@mail.gmail.com>
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as
 permitted sender) smtp.mailfrom=gclcip-std-proposals@m.gmane.org;
       dmarc=fail (p=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-Spam-Checked-In-Group: 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:24587
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/24587>

On 2016-02-21 08:55, Viacheslav Usov wrote:
> On Fri, Feb 19, 2016 at 9:06 PM, Patrice Roy wrote:
>> I often use _ as =C2=ABuninteresting but needed=C2=BB variables such as
>> lock_guards. Please don't break my code :)
>=20
> I would even say that this case, "uninteresting but needed" is more
> interesting. It would be nice to have a language construct that creates a=
n
> "anonymous" variable in the current scope. Alternatively, this could be
> conceptualized as a temporary whose lifetime is extended till the end of
> the current scope.

Is that not what we're proposing?

--=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/naf9ro%2436k%242%40ger.gmane.org.

.
