220 24558 <CAGsORuBYcweY31s-U_gOaSapBzNjxgOCmCuUp4r=6ZrA0oOQnA@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Zhihao Yuan <zy@miator.net>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: throwaway variable
Date: Sat, 20 Feb 2016 16:21:59 -0600
Lines: 38
Approved: news@gmane.org
Message-ID: <CAGsORuBYcweY31s-U_gOaSapBzNjxgOCmCuUp4r=6ZrA0oOQnA@mail.gmail.com>
References: <9658e852-6254-4ecf-a6d4-879160d4de7d@isocpp.org>
	<CAKiZDp0Q9VFSd9ONVDH8hJdhcFQ8daU12yLCSXB69UcRBcMj3Q@mail.gmail.com>
	<na7t6a$kb2$1@ger.gmane.org>
	<CAFk2RUZ-8S6yjQnF-CC3d+7TiDvG+mFdzUG1Z5r+HGse6dSh=w@mail.gmail.com>
	<CANh-dXkgyHteF7Kq-6vK=9TxpVyj5tTcSZRM_xBuT4A=h_9Gig@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
X-Trace: ger.gmane.org 1456006929 27632 80.91.229.3 (20 Feb 2016 22:22:09 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 20 Feb 2016 22:22:09 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCSKRWMD4EHBBCGOUO3AKGQEZZ4QMGQ@isocpp.org Sat Feb 20 23:22:02 2016
Return-path: <std-proposals+bncBCSKRWMD4EHBBCGOUO3AKGQEZZ4QMGQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ig0-f199.google.com ([209.85.213.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCSKRWMD4EHBBCGOUO3AKGQEZZ4QMGQ@isocpp.org>)
	id 1aXFuc-0005TK-7d
	for gclcip-std-proposals@m.gmane.org; Sat, 20 Feb 2016 23:22:02 +0100
Original-Received: by mail-ig0-f199.google.com with SMTP id dp10sf213820974igc.0
        for <gclcip-std-proposals@m.gmane.org>; Sat, 20 Feb 2016 14:22:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=miator-net.20150623.gappssmtp.com; s=20150623;
        h=sender:mime-version:in-reply-to:references:date:message-id:subject
         :from:to:content-type: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=O1mIcSlCKFc+sueyX6P+qBnPUPgRpgEJJxdFrwYxw3g=;
        b=bWWK3MxZrqST0jkRDpsGyyxrF+bRur8YGUxbDh1SSUToczZ7xRte8Vvw3GywpAXj94
         gKt/VoK5YVb/v2luGQzYYtFK+WeoI3f2wBdE+EoYKrEs9Ws4q4uwhxKGUkxTsSgA1Tp6
         5VKh840DYUgbqfxUlrdMIt7X270i0fTTUcTcKgxh/WUj9xYO9Wqyj7nbloPfbH6rZwdf
         6/quvVfEX+IbByPvCaak22G2Uiv08ZViEJ7pcJWBz5q06lPaZWfhwQKFhgloejhorVyZ
         lC5Z2IKIrsArn2MIasT1E6JrytNri40+Elu5f51PcZjHb4+nZvmX4kfSp441TUChgBLZ
         S0Tw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:sender:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:content-type: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=O1mIcSlCKFc+sueyX6P+qBnPUPgRpgEJJxdFrwYxw3g=;
        b=KwTr+17V3KwdRZ8amRQ9HXW9tPdicLYQvGIcqmVIAqipFGCdyxYbxibBDyUnaOTWkR
         ELNAi6xLp8GdpnY9VyKThGm3VmyBtqny0f2WccUThtyo0KrpwHrOhh2AOTeiXEqdlBIE
         c6eQBe4TdXfFEkj+jWqV8+iKb/bMfyXbrVvX7N3g15LcDmleK65x12XsXZELsDF4Q0bC
         wLGZm/on3DfmjlsrTufiSjvlKJWXWkQBba4lzTtcPm4SdRBidIvK2wjC0RrP6Wcz6rQ3
         LvuNJDSyiPtTigwBnbMcL/JQKdAzVb6evlv8p6M0BXZWE/VuUtJU2OrlrwsuNB2Ilfqr
         TRcg==
X-Gm-Message-State: AG10YOTo3fTES9P9wU1XhNjV+vOFkbJF9wlyWCZQV/UOL4FrFwRuzafNw/o2mB8IPEp7Gw==
X-Received: by 10.182.119.199 with SMTP id kw7mr19438426obb.15.1456006921369;
        Sat, 20 Feb 2016 14:22:01 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.81.106 with SMTP id e97ls748184qgd.67.gmail; Sat, 20 Feb
 2016 14:21:59 -0800 (PST)
X-Received: by 10.140.102.11 with SMTP id v11mr25708810qge.39.1456006919971;
        Sat, 20 Feb 2016 14:21:59 -0800 (PST)
Original-Received: from mail-s68.mailgun.info (mail-s68.mailgun.info. [184.173.153.196])
        by mx.google.com with ESMTPS id t28si2202447qki.27.2016.02.20.14.21.59
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 20 Feb 2016 14:21:59 -0800 (PST)
Received-SPF: pass (google.com: domain of bounce+3f9131.69110-std-proposals=isocpp.org@miator.net designates 184.173.153.196 as permitted sender) client-ip=184.173.153.196;
Original-Sender: zy@miator.net
X-Mailgun-Sid: WyI3MTBkYiIsICJzdGQtcHJvcG9zYWxzQGlzb2NwcC5vcmciLCAiNjkxMTAiXQ==
Original-Received: from mail-io0-f175.google.com (mail-io0-f175.google.com [209.85.223.175])
 by mxa.mailgun.org with ESMTP id 56c8e707.7fad290a65f0-in06;
 Sat, 20 Feb 2016 22:21:59 -0000 (UTC)
Original-Received: by mail-io0-f175.google.com with SMTP id z135so144012304iof.0
        for <std-proposals@isocpp.org>; Sat, 20 Feb 2016 14:21:59 -0800 (PST)
X-Received: by 10.107.19.90 with SMTP id b87mr23740374ioj.11.1456006919406;
 Sat, 20 Feb 2016 14:21:59 -0800 (PST)
Original-Received: by 10.79.38.6 with HTTP; Sat, 20 Feb 2016 14:21:59 -0800 (PST)
In-Reply-To: <CANh-dXkgyHteF7Kq-6vK=9TxpVyj5tTcSZRM_xBuT4A=h_9Gig@mail.gmail.com>
X-Gmail-Original-Message-ID: <CAGsORuBYcweY31s-U_gOaSapBzNjxgOCmCuUp4r=6ZrA0oOQnA@mail.gmail.com>
X-Original-Sender: zy@miator.net
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of bounce+3f9131.69110-std-proposals=isocpp.org@miator.net designates
 184.173.153.196 as permitted sender) smtp.mailfrom=bounce+3f9131.69110-std-proposals=isocpp.org@miator.net;
       dkim=pass header.i=@miator.net
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:24558
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/24558>

On Sat, Feb 20, 2016 at 4:11 PM, 'Jeffrey Yasskin' via ISO C++
Standard - Future Proposals <std-proposals@isocpp.org> wrote:
> I do still think that __ is the most likely
> name for the concept.

I'd rather see a syntax like `if` but not branching:

  with (locking()) {
    // ...
  }

  with (auto f = open_file(...))
    // ...

For this use case,

  for(auto _ : {1, 2, 3})
  {
  }

I think, maybe, we can just allow range-for to have no declarator:

  for ({1, 2, 3})
  {
  }

-- 
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://bit.ly/blog4bsd

-- 
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/CAGsORuBYcweY31s-U_gOaSapBzNjxgOCmCuUp4r%3D6ZrA0oOQnA%40mail.gmail.com.

.
