220 34164 <CAGg_6+M9JX4fsGD0mt9v0pEswz+K1vf554Ey4OdPULc30ntbJQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nevin Liber <nevin@eviloverlord.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Idea: Extension of structured bindings to
 definition of structs
Date: Sun, 27 Aug 2017 00:20:46 -0500
Lines: 82
Approved: news@gmane.org
Message-ID: <CAGg_6+M9JX4fsGD0mt9v0pEswz+K1vf554Ey4OdPULc30ntbJQ@mail.gmail.com>
References: <59dcbbbc-c536-4b7b-9c88-0638fb0cd58a@technion.ac.il>
 <7b9bf263-d3ca-42bf-aed6-4c7606782a28@isocpp.org> <1762295.OciJaA9sdk@tjmaciei-mobl1>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="f403045ffe9297f4130557b559b2"
X-Trace: blaine.gmane.org 1503811297 26434 195.159.176.226 (27 Aug 2017 05:21:37 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 27 Aug 2017 05:21:37 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCE35H5S6IDBBWFNRHGQKGQER3DREOI@isocpp.org Sun Aug 27 07:21:32 2017
Return-path: <std-proposals+bncBCE35H5S6IDBBWFNRHGQKGQER3DREOI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pg0-f71.google.com ([74.125.83.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCE35H5S6IDBBWFNRHGQKGQER3DREOI@isocpp.org>)
	id 1dlq0h-0006BF-I0
	for gclcip-std-proposals@m.gmane.org; Sun, 27 Aug 2017 07:21:23 +0200
Original-Received: by mail-pg0-f71.google.com with SMTP id 4sf26533261pgi.15
        for <gclcip-std-proposals@m.gmane.org>; Sat, 26 Aug 2017 22:21:30 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1503811289; cv=pass;
        d=google.com; s=arc-20160816;
        b=JAeUBhACNdhwr4RzPXxjIBUWsd20sIzCI09/nDBmnLIBrVhQ6/irSicd1Xj3q86ohB
         c7o6qbm+wyyjh/CeYUTTusOoo6ZaGNX8hq4WqKPsm+Ndr0Wzx/PYkEdjx/a7Tnj78xZh
         en8HuElWl5IAPbLlF/TCmLFsn0C3vo084ysgAZ3Im87fIZpZbvIlLFROIPzrWemtXkvz
         i37/7XwgItSm2X8HJi3O81XkrGpFSaUhl0R+nZ56TPp/v2wGuMJzET0LeDlmDvdMx6Fo
         SedaNGcfmL+86FjfiCxMZ5fqeXKHc99SUw9m3pXhufnAhMb2nFj5QzV0vIsaTcDan8rt
         g5VA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:references:in-reply-to:sender:mime-version
         :arc-authentication-results:arc-message-signature
         :arc-authentication-results;
        bh=LWplBh+InQTDXaZ47Bmeicm/Dk2rAzBPPjub6dzWF/o=;
        b=0LHbQDJaz4zuCtLkqkFbAib2mNdoF7+J4f6P6P+MH058/cfrCxeI3griaq6JBxmg7U
         r69Y2EC5HdZw/rggtzYII+EjX+Kj3acO/fLsK1Ym5+ggepeV1b3Jjjk2Xoe3DrRYzP88
         3Z0hSPHLmcOkdMGbRgAmGZnaI+rh5aNMoBJ08ripZAXHU6tlhcnj/oSP70azSuj7JENs
         WRtHhCYAQBrA6vvc3Ffle0XvlotCux4XDB+EtLwJT0/gyD+VmlDZvI4rD6YTAYwKWKve
         +rZAjg9AcZtPRCos7A6rhDkSZALpmz0xzNRvyUTtSAOUmrk92G33pn8uWkZKXpyYYsrx
         zeuQ==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=gYIvVrrj;
       spf=pass (google.com: domain of nliber@gmail.com designates 2607:f8b0:400e:c00::236 as permitted sender) smtp.mailfrom=nliber@gmail.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
         :date:message-id:subject: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=LWplBh+InQTDXaZ47Bmeicm/Dk2rAzBPPjub6dzWF/o=;
        b=fENQXV5tQ3i2P/6BVSUgw/yUtxVvF81+jW2XEBsy00f0cTjg0y0h9O09M6Uc2VN2z0
         0svFCZzTooURKUxeHeba0TAAyevp91XEKdimIiMFADd9JcAxTyq9aGenr29nnKdIvTS5
         uX4e4Jw6Nm1zpAxi9RXHoRFNk/nlEmtKFCwFe7PQ1la1VAUtMKSo65kRfb77uf3mUIfR
         0Y55B9T40Tdr4XEZoFts1bGcPHPtOXO3RBdzMEI7czhlNWtUkWHGf6v0LazNc4ZKGNxo
         mCvAa25yQe/GlrfEjEgN2Ryl5Zeo4E/I7qoE73mDdtM8kvndpSb8HIW/+X8XSE6vCqTX
         WS4Q==
X-Gm-Message-State: AHYfb5gPv3Z5qpTa6usg2fdrVjn85VAGjjc2LiMwBJ6/m+HmywkNtQX4
	gCIGD9iBRC6Cow==
X-Received: by 10.99.96.151 with SMTP id u145mr2753486pgb.162.1503811289534;
        Sat, 26 Aug 2017 22:21:29 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.36.68.196 with SMTP id o187ls2997353ita.15.canary-gmail; Sat,
 26 Aug 2017 22:21:28 -0700 (PDT)
X-Received: by 10.98.155.70 with SMTP id r67mr751791pfd.204.1503811288153;
        Sat, 26 Aug 2017 22:21:28 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1503811288; cv=none;
        d=google.com; s=arc-20160816;
        b=Dytnx6IFvz9XzPdFCfwzCJyJKa7Ljzg/+CgOXa6KeJGW2AQaYRe5s1oTSf9HlaZPLV
         CSd6XaJxfAejlLGT0ukDtHBbwJEhf0iD45/O8mQdrVrnKVMl1voRZ31YXL2f9FiAXvOM
         5cGTJFPQ9xNqGfGM866bGX5bm8D+GeGTbMH2QALFCnUjwESePW0i+FcG5k2w0RldwoND
         IwNprvZ0Dff6Ntiy4rgU+vzpIsXDH2RO3Pibx50MODB9DR4YQMZK8OtRnV9AC6RP8QQl
         yiXBCp8Y4e/+EM2syVjTA1lTTOhGnhbHrkl6aFgFNGdMuGPrzD5pbzzIn+V4iaxGTDYd
         KSJQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:sender
         :mime-version:dkim-signature:arc-authentication-results;
        bh=MfyfoERkaYlZ/v8Wccxy4gX/sazV35CllYT+kmyV5jI=;
        b=VCI/xDjCsT0ym3BF3T10foW3m1uMO/qgC+Wb15VBbD8uAQa2Buu0VYfl4PkRicHjz/
         Mzc2XF36Ns4XJHJpcnw+UoPANTSQqez8yOCn4n6gIeJCCfbT9YjJyssrFmPfbuN/CkMX
         Z/fq6rWPnGOGhDuER632pQJdp/A9t+PqmXZ2PDZ6ixRNmywG3c3YQuCr9VxomBIxOaBz
         K04khU0+NtZ/52r1c9aQLWk5acHSBbvOZdMmCh5qwwWn7cA5OYkFgaw+o3GgnoM6RXD5
         AetQp0stSZDFk9UfLjRf6cCzAc3Se8yAu78MwV6zfKCKseWATIuF/x4vGv5VVJOIVe68
         JUiQ==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=gYIvVrrj;
       spf=pass (google.com: domain of nliber@gmail.com designates 2607:f8b0:400e:c00::236 as permitted sender) smtp.mailfrom=nliber@gmail.com
Original-Received: from mail-pf0-x236.google.com (mail-pf0-x236.google.com. [2607:f8b0:400e:c00::236])
        by mx.google.com with ESMTPS id 2si8001644plb.500.2017.08.26.22.21.28
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 26 Aug 2017 22:21:28 -0700 (PDT)
Received-SPF: pass (google.com: domain of nliber@gmail.com designates 2607:f8b0:400e:c00::236 as permitted sender) client-ip=2607:f8b0:400e:c00::236;
Original-Received: by mail-pf0-x236.google.com with SMTP id h75so6787490pfh.1
        for <std-proposals@isocpp.org>; Sat, 26 Aug 2017 22:21:28 -0700 (PDT)
X-Received: by 10.84.231.197 with SMTP id g5mr4103957pln.346.1503811287379;
 Sat, 26 Aug 2017 22:21:27 -0700 (PDT)
Original-Sender: nliber@gmail.com
Original-Received: by 10.100.133.80 with HTTP; Sat, 26 Aug 2017 22:20:46 -0700 (PDT)
In-Reply-To: <1762295.OciJaA9sdk@tjmaciei-mobl1>
X-Original-Sender: nevin@eviloverlord.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=gYIvVrrj;       spf=pass
 (google.com: domain of nliber@gmail.com designates 2607:f8b0:400e:c00::236 as
 permitted sender) smtp.mailfrom=nliber@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:34164
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/34164>

--f403045ffe9297f4130557b559b2
Content-Type: text/plain; charset="UTF-8"

On Sat, Aug 26, 2017 at 11:11 PM, Thiago Macieira <thiago@macieira.org>
wrote:

> On Saturday, 26 August 2017 18:08:11 PDT Nicol Bolas wrote:
> > I have a tuple. Why would I not just *use the tuple*?
>
> Because tuples are horrible. From
>         https://www.kdab.com/tuple-pair-cpp-apis/
>
> "Quick: When you design C++ APIs, when and how should you use pair and
> tuple?
> The answer is as simple as it is surprising: Never. Ever."
>
> And yet some people will. So when interacting with those API, you need to
> "correct" it with proper names.
>

Prior to C++17 I'd agree, but we haven't have structured bindings in the
language long enough to know how big an issue it still is.
-- 
 Nevin ":-)" Liber  <mailto:nevin@eviloverlord.com>  +1-847-691-1404

-- 
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/CAGg_6%2BM9JX4fsGD0mt9v0pEswz%2BK1vf554Ey4OdPULc30ntbJQ%40mail.gmail.com.

--f403045ffe9297f4130557b559b2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Sat, Aug 26, 2017 at 11:11 PM, Thiago Macieira <span di=
r=3D"ltr">&lt;<a href=3D"mailto:thiago@macieira.org" target=3D"_blank">thia=
go@macieira.org</a>&gt;</span> wrote:<br><div class=3D"gmail_extra"><div cl=
ass=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0=
 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Saturday, 26 August 2=
017 18:08:11 PDT Nicol Bolas wrote:<br>
&gt; I have a tuple. Why would I not just *use the tuple*?<br>
<br>
Because tuples are horrible. From<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"https://www.kdab.com/tuple-pair-cpp-=
apis/" rel=3D"noreferrer" target=3D"_blank">https://www.kdab.com/tuple-<wbr=
>pair-cpp-apis/</a><br>
<br>
&quot;Quick: When you design C++ APIs, when and how should you use pair and=
 tuple?<br>
The answer is as simple as it is surprising: Never. Ever.&quot;<br>
<br>
And yet some people will. So when interacting with those API, you need to<b=
r>
&quot;correct&quot; it with proper names.<br></blockquote><div><br></div><d=
iv>Prior to C++17 I&#39;d agree, but we haven&#39;t have structured binding=
s in the language long enough to know how big an issue it still is.</div></=
div>-- <br><div class=3D"gmail_signature" data-smartmail=3D"gmail_signature=
"><div dir=3D"ltr"><div><div dir=3D"ltr"><div>=C2=A0Nevin &quot;:-)&quot; L=
iber=C2=A0 &lt;mailto:<a href=3D"mailto:nevin@eviloverlord.com" target=3D"_=
blank">nevin@eviloverlord.com</a>&gt; =C2=A0+1-847-691-1404</div></div></di=
v></div></div>
</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/CAGg_6%2BM9JX4fsGD0mt9v0pEswz%2BK1vf5=
54Ey4OdPULc30ntbJQ%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAGg_6%2BM9JX=
4fsGD0mt9v0pEswz%2BK1vf554Ey4OdPULc30ntbJQ%40mail.gmail.com</a>.<br />

--f403045ffe9297f4130557b559b2--

.
