220 29701 <54f08727-b6f2-4d8f-9de9-e40d87ecc2cd@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nicol Bolas <jmckesson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Add a "tuple_slice" function in <tuple>
Date: Thu, 8 Dec 2016 14:46:54 -0800 (PST)
Lines: 74
Approved: news@gmane.org
Message-ID: <54f08727-b6f2-4d8f-9de9-e40d87ecc2cd@isocpp.org>
References: <490cad18-4302-4350-976f-2bc394a1a350@isocpp.org>
 <583F4A4F.7020708@gmail.com>
 <945de37f-352d-008f-a29b-d354999c6c4c@wanadoo.fr>
 <5840659B.7050003@gmail.com>
 <fbfba60b-f7a7-2a41-6e09-0cbe7e6378c0@wanadoo.fr>
 <58419917.8000105@gmail.com>
 <b6286db3-251a-d59e-acf7-f5b1daa624bd@wanadoo.fr>
 <58499DED.3010506@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_371_1638032783.1481237214665"
X-Trace: blaine.gmane.org 1481237223 28738 195.159.176.226 (8 Dec 2016 22:47:03 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 8 Dec 2016 22:47:03 +0000 (UTC)
Cc: mwoehlke.floss@gmail.com
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCEKFTV6ZUMBBX6FU7BAKGQEMR2TTHA@isocpp.org Thu Dec 08 23:46:55 2016
Return-path: <std-proposals+bncBCEKFTV6ZUMBBX6FU7BAKGQEMR2TTHA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f200.google.com ([209.85.220.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCEKFTV6ZUMBBX6FU7BAKGQEMR2TTHA@isocpp.org>)
	id 1cF7Sl-0005gI-Up
	for gclcip-std-proposals@m.gmane.org; Thu, 08 Dec 2016 23:46:52 +0100
Original-Received: by mail-qk0-f200.google.com with SMTP id g193sf657552qke.2
        for <gclcip-std-proposals@m.gmane.org>; Thu, 08 Dec 2016 14:46: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: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=BLy9FTQr455yACZecZXhjZ3OusxTlMuOzgF35z7gz/M=;
        b=qrflDou8ZGhJ9wZ9Ji9+/VMFOJiDST2gcthZsNsnnvDuK+kkEbmeFnVnDNbkt+Lng0
         dQ/gmg9vVcoqQRITHQD+J2jScOuzNNP2ydYTrquGlnG2cXAGa9nogDRPrbsJBvkC9zDg
         LHjAc6l6mguchdz2fAaDtZGqbJNmsilS0BL6INshe5xbMjSZ5KX/un9oqlenZ6ycGLgX
         rDpXMZGQPeNX2Lq9kDRa4kx3XjDbPDDl3h0e41HYtgaY6dlJnuPZWtUjSooai+EzIIHI
         IAPHFlfGvylK+3cv4pR6B1knlm48SS8vcp2A5BKy+TDnuXRAxqAnJKttzqYOH4Ln5xI+
         NQQA==
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: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=BLy9FTQr455yACZecZXhjZ3OusxTlMuOzgF35z7gz/M=;
        b=eOOjztlZ7F6ZoR6+iL1AA4MI18siFqhZaEyoqtzvacrjnNbSiBTak7GVwQHd4/6kI0
         4H+422AM03XXVvQ37I49qOKEo8MFlEfR/1pjR1ot2GoKXMfAdZFe9kTYPPzErsUecSFu
         beJ8PF/xZXWwGZKo7WCBHLzNFIjSsruce1rw61vD5jK+LFEPAWQICtD5ncWyraNYWjFz
         lZiRq+qb0t2ffPE5+kesTUCUCsSK3IhZFFNVyPW76ulKrf5j52+lL9n8tyDQI3Xql+2C
         1fOmcu5egjIkNWM9niW02D34WlYQJdzsd3hpaZ3nPyEERm7jciqUaLddpDpFucxGdS8H
         v1rA==
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: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=BLy9FTQr455yACZecZXhjZ3OusxTlMuOzgF35z7gz/M=;
        b=L1i43Oso4AiPEsi80WwH38Uyyiz8tWYV+IvPGh5EFP0hD7Mvf0qmZru3VvckVViJWa
         NPbWQJRUfiwEDsZWoznHXkvhAQacmqyXbTE8EWdwoCxDcjaK7V0RVZjP53Oa3O4YFMu4
         ohw9Tpe3sP4lo5hAf4V2yde9Yyjoyn16HRWabjLHlCGYffMsP4fnmOzLsSAfjEozYtWo
         o24uUGpe+efNizZxUiTnoliOODBFr7A21qX/qH9+w5LrVjDxo9JOTiRxDU73E8xowC/k
         mHgg0EwmjjXMO+1g7TFtZB5CYqhEcY3PyQ/e+RvgUxtQPOV2aM9B24cEjOtw5i177qjI
         /OpA==
X-Gm-Message-State: AKaTC03DLxZe9UbTcBRXE9a9Wufw5R9JQYV0ha8R5VESqoneg8QTBFR5JMNMpUK7WqYnSw==
X-Received: by 10.200.41.47 with SMTP id y44mr16898445qty.37.1481237215815;
        Thu, 08 Dec 2016 14:46:55 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.11.2 with SMTP id a2ls3428730ota.16.gmail; Thu, 08 Dec
 2016 14:46:55 -0800 (PST)
X-Received: by 10.157.17.167 with SMTP id v36mr5242149otf.12.1481237215159;
        Thu, 08 Dec 2016 14:46:55 -0800 (PST)
In-Reply-To: <58499DED.3010506@gmail.com>
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-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:29701
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29701>

------=_Part_371_1638032783.1481237214665
Content-Type: multipart/alternative; 
	boundary="----=_Part_372_2044462109.1481237214665"

------=_Part_372_2044462109.1481237214665
Content-Type: text/plain; charset=UTF-8



On Thursday, December 8, 2016 at 12:52:48 PM UTC-5, Matthew Woehlke wrote:
>
> On 2016-12-05 16:21, Vicente J. Botet Escriba wrote: 
> > Maybe you are right. The problem I see is that functions cannot return 
> > parameter packs as them are no types and so this makes composition more 
> > difficult. 
>
> Yes, I can see where composition might make it desirable to have a 
> library feature in addition. This seems similar to the case where the 
> proposed feature does not entirely obviate the need for std::apply; it 
> just means that 90% of the time you will use the language feature, and 
> in some corner cases you will still use std::apply.
>

I don't think I'd use the library feature ever. Better to just use `return 
tuple{[I1:I2]tpl...};`.

-- 
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/54f08727-b6f2-4d8f-9de9-e40d87ecc2cd%40isocpp.org.

------=_Part_372_2044462109.1481237214665
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>On Thursday, December 8, 2016 at 12:52:48 PM UTC-5=
, Matthew Woehlke wrote:<blockquote class=3D"gmail_quote" style=3D"margin: =
0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On 201=
6-12-05 16:21, Vicente J. Botet Escriba wrote:
<br>&gt; Maybe you are right. The problem I see is that functions cannot re=
turn
<br>&gt; parameter packs as them are no types and so this makes composition=
 more
<br>&gt; difficult.
<br>
<br>Yes, I can see where composition might make it desirable to have a
<br>library feature in addition. This seems similar to the case where the
<br>proposed feature does not entirely obviate the need for std::apply; it
<br>just means that 90% of the time you will use the language feature, and
<br>in some corner cases you will still use std::apply.<br></blockquote><di=
v><br>I don&#39;t think I&#39;d use the library feature ever. Better to jus=
t use `return tuple{[I1:I2]tpl...};`.<br></div></div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/54f08727-b6f2-4d8f-9de9-e40d87ecc2cd%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/54f08727-b6f2-4d8f-9de9-e40d87ecc2cd=
%40isocpp.org</a>.<br />

------=_Part_372_2044462109.1481237214665--

------=_Part_371_1638032783.1481237214665--

.
