220 23850 <aa74c951-16a0-46db-a7ce-dd8051157b53@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Nicol Bolas <jmckesson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: RFC: Unpacking tuples to value sequences
Date: Tue, 19 Jan 2016 08:14:54 -0800 (PST)
Lines: 82
Approved: news@gmane.org
Message-ID: <aa74c951-16a0-46db-a7ce-dd8051157b53@isocpp.org>
References: <n7jlvp$c44$1@ger.gmane.org>
 <4ac1f63a-0ee6-42fd-8a09-f3cd2c2a1bd9@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_825_1916680416.1453220094576"
X-Trace: ger.gmane.org 1453220098 8971 80.91.229.3 (19 Jan 2016 16:14:58 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 19 Jan 2016 16:14:58 +0000 (UTC)
Cc: mwoehlke.floss@gmail.com
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCEKFTV6ZUMBB76B7G2AKGQEUZZZZHY@isocpp.org Tue Jan 19 17:14:57 2016
Return-path: <std-proposals+bncBCEKFTV6ZUMBB76B7G2AKGQEUZZZZHY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f197.google.com ([209.85.220.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCEKFTV6ZUMBB76B7G2AKGQEUZZZZHY@isocpp.org>)
	id 1aLYvo-0003eV-UG
	for gclcip-std-proposals@m.gmane.org; Tue, 19 Jan 2016 17:14:57 +0100
Original-Received: by mail-qk0-f197.google.com with SMTP id i123sf125760803qkd.2
        for <gclcip-std-proposals@m.gmane.org>; Tue, 19 Jan 2016 08:14:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:cc:message-id:in-reply-to:references:subject
         :mime-version:content-type:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=TS11QQGmtCWifC5RJR4JLKgyHvKy59PWGc/JwrNwrdc=;
        b=wu19yONm9hQHtHK3fxIDXAK/DTN/8nFxG1lNL43bxvTftuuTEQZ40RyCVL9kWTCSbS
         DnGo/ji2D8U5fsHnpUDjGNMAhOqr77sVunIXjG/w25xEi5HukbwMcq30F+EgZeu2sQkA
         83SYl15RfXe9J1L46pWKT18dWUVr2mDoX3sHHmB/wrgCSrYRVn4EhpGQXWVUeplCV6AZ
         AQ+nLDJ65z+kIT/CmskVjxVMjtHYHk2fpEKYR5bTJPZX/Dd10cihoVJCrQE+DR/E1S3f
         5v3qbcp2gZv+ohZBQiPLaSWFdSyW88TaLLLr1IoRl7fOtWXecDZzzQadqvAtGQcbDNOn
         atvw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:cc:message-id:in-reply-to:references:subject
         :mime-version:content-type:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=TS11QQGmtCWifC5RJR4JLKgyHvKy59PWGc/JwrNwrdc=;
        b=quTyVqRdaMKMIbyY73lJIcJa4RN58Y3Ob2bOnxLoZSUwKDeAkrgGxMxIxTwOfRZB7v
         2L0tWXT5w9IF6ZA7NY8fA574mF5HLyhzJaBvtNjZDdbEIwI5itOQp13MujT/oayoFLPb
         NZ6wf4CUuU0icr3dV8neN7xfWpl+qtzyI/MyGqvSEEy/U/FGNxmgztx34sXP4DgWa2GS
         BNB4daxPnmrjcZvvkxddtsQ+KdhkTE3bZVxXB4F3DpqpE0HUcAFaz9BPkB8hZBZbxxOp
         Jk0S3pvwWOHe9VKM2biPCZUBLnXvhd6LUMvXg6+uOWWoEWjHtjpX6e9zT7qOKIMxM2MY
         8kMw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to
         :references:subject:mime-version:content-type:x-original-sender
         :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=TS11QQGmtCWifC5RJR4JLKgyHvKy59PWGc/JwrNwrdc=;
        b=ayexTFrUauiKOOZi549RDEtnTXEMyJHuZ+ZKvNnnNYStxFtpgEUPkrbea9uzGa9JV7
         UaL30S5lHGx/ewZ9ZOrhObdFKPT80klH8VbUZvakRKa74sh2DsSmyLBZpvWxXURdDf8c
         mRmuGvppmkwIebF5fSgjQLwZI3uCoQ3fwffzxhL1GpfWi8vyarob+kAFXYQehjygf42e
         /rTFJJiZVA67zvgpsiNiy/lF82U5RwXNCZaP8DcPle90iUbEYfF7Vor4UGypqq8EJsii
         Tk9f8NUM3oCC/XplowV2iqdBXvyhmwQyVQSMZkaJvrkBcawl4Q++bOhpI1xIuJOpxQAt
         ivIQ==
X-Gm-Message-State: ALoCoQmM+Nzh4eGw1OPFetjwb/B/1t368jlrApkiGO/44vqKYQpeOnJyPafJZ+quDz9a/TH85FlDUinLomocsWjT6x3GZcYE0w==
X-Received: by 10.129.75.136 with SMTP id y130mr28304808ywa.2.1453220096134;
        Tue, 19 Jan 2016 08:14:56 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.79.166 with SMTP id k6ls1123963igx.34.gmail; Tue, 19 Jan
 2016 08:14:55 -0800 (PST)
X-Received: by 10.50.3.73 with SMTP id a9mr350309iga.4.1453220095220;
        Tue, 19 Jan 2016 08:14:55 -0800 (PST)
In-Reply-To: <4ac1f63a-0ee6-42fd-8a09-f3cd2c2a1bd9@isocpp.org>
X-Original-Sender: jmckesson@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:23850
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/23850>

------=_Part_825_1916680416.1453220094576
Content-Type: multipart/alternative; 
	boundary="----=_Part_826_1706372869.1453220094576"

------=_Part_826_1706372869.1453220094576
Content-Type: text/plain; charset=UTF-8

It should be noted that this changes some of my code from before:

auto {x, y, z} = {func([*]rev_agg)...};

Becomes:

auto {x, y, z} = func([*]rev_agg);

There's no need for unpacking here, since it's just a value sequence.

-- 

--- 
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.
Visit this group at https://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_826_1706372869.1453220094576
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">It should be noted that this changes some of my code from =
before:<br><br><div class=3D"prettyprint" style=3D"background-color: rgb(25=
0, 250, 250); border-color: rgb(187, 187, 187); border-style: solid; border=
-width: 1px; word-wrap: break-word;"><code class=3D"prettyprint"><div class=
=3D"subprettyprint"><span style=3D"color: #008;" class=3D"styled-by-prettif=
y">auto</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> </=
span><span style=3D"color: #660;" class=3D"styled-by-prettify">{</span><spa=
n style=3D"color: #000;" class=3D"styled-by-prettify">x</span><span style=
=3D"color: #660;" class=3D"styled-by-prettify">,</span><span style=3D"color=
: #000;" class=3D"styled-by-prettify"> y</span><span style=3D"color: #660;"=
 class=3D"styled-by-prettify">,</span><span style=3D"color: #000;" class=3D=
"styled-by-prettify"> z</span><span style=3D"color: #660;" class=3D"styled-=
by-prettify">}</span><span style=3D"color: #000;" class=3D"styled-by-pretti=
fy"> </span><span style=3D"color: #660;" class=3D"styled-by-prettify">=3D</=
span><span style=3D"color: #000;" class=3D"styled-by-prettify"> </span><spa=
n style=3D"color: #660;" class=3D"styled-by-prettify">{</span><span style=
=3D"color: #000;" class=3D"styled-by-prettify">func</span><span style=3D"co=
lor: #660;" class=3D"styled-by-prettify">([*]</span><span style=3D"color: #=
000;" class=3D"styled-by-prettify">rev_agg</span><span style=3D"color: #660=
;" class=3D"styled-by-prettify">)...};</span><span style=3D"color: #000;" c=
lass=3D"styled-by-prettify"><br></span></div></code></div><br>Becomes:<br><=
br><div style=3D"background-color:rgb(250,250,250);border-color:rgb(187,187=
,187);border-style:solid;border-width:1px;word-wrap:break-word"><code><div>=
<span style=3D"color:#008">auto</span><span style=3D"color:#000"> </span><s=
pan style=3D"color:#660">{</span><span style=3D"color:#000">x</span><span s=
tyle=3D"color:#660">,</span><span style=3D"color:#000"> y</span><span style=
=3D"color:#660">,</span><span style=3D"color:#000"> z</span><span style=3D"=
color:#660">}</span><span style=3D"color:#000"> </span><span style=3D"color=
:#660">=3D</span><span style=3D"color:#000"> </span><span style=3D"color:#0=
00">func</span><span style=3D"color:#660">([*]</span><span style=3D"color:#=
000">rev_agg</span><span style=3D"color:#660">);</span></div></code></div><=
br>There&#39;s no need for unpacking here, since it&#39;s just a value sequ=
ence.<br></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"https://groups.google.com/a/isocpp.org/group=
/std-proposals/">https://groups.google.com/a/isocpp.org/group/std-proposals=
/</a>.<br />

------=_Part_826_1706372869.1453220094576--
------=_Part_825_1916680416.1453220094576--

.
