220 34224 <CAGg_6+MPQTnqdWLQ1UV8jF173jDXYQQx-abwwNV3v3iknocJ=Q@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: Wed, 30 Aug 2017 10:16:41 -0500
Lines: 71
Approved: news@gmane.org
Message-ID: <CAGg_6+MPQTnqdWLQ1UV8jF173jDXYQQx-abwwNV3v3iknocJ=Q@mail.gmail.com>
References: <59dcbbbc-c536-4b7b-9c88-0638fb0cd58a@technion.ac.il>
 <7b9bf263-d3ca-42bf-aed6-4c7606782a28@isocpp.org> <1762295.OciJaA9sdk@tjmaciei-mobl1>
 <ff2ceb41-caca-4659-9a7d-4da9c2046810@isocpp.org> <74349bfe-bb5a-a2ce-4142-5d46103d1d9f@technion.ac.il>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="f403045c57dc47ac3d0557fa06cf"
X-Trace: blaine.gmane.org 1504106246 5598 195.159.176.226 (30 Aug 2017 15:17:26 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 30 Aug 2017 15:17:26 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCE35H5S6IDBBA5OTPGQKGQEPPB75EI@isocpp.org Wed Aug 30 17:17:21 2017
Return-path: <std-proposals+bncBCE35H5S6IDBBA5OTPGQKGQEPPB75EI@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+bncBCE35H5S6IDBBA5OTPGQKGQEPPB75EI@isocpp.org>)
	id 1dn4k2-00013k-UG
	for gclcip-std-proposals@m.gmane.org; Wed, 30 Aug 2017 17:17:19 +0200
Original-Received: by mail-pg0-f71.google.com with SMTP id b8sf17900409pgn.17
        for <gclcip-std-proposals@m.gmane.org>; Wed, 30 Aug 2017 08:17:26 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1504106245; cv=pass;
        d=google.com; s=arc-20160816;
        b=0uWWhNmTd+BY8uAfG22IwKf3KmnyAqs6VrH+mcuQQtnT8cO0yrJriW/rG3kuFpl3OL
         esOdQgXAa9Vy9cuJjbxWKJsauFgwvy8mf+sygs+K993XTjcvyzuKPkwnTXUkY97YUCS9
         N02pYn8q9SPVnsbmLw1rV6oJIqTs/RKI6NQmC+mcwGZb/JZHs9Qdf7auRzByA39rKlbM
         w2Wrj24OzHNuYuIPyeaLFwgGJ+VmyWVBXanpnDcMbtFsRy4dDau7jP6mvnmjuXRy47xI
         hZTF4HTf+wDbdXd5j2tuU5JwyVFycOY4t1n1tLP4H3doBOeBAreSVD8GUSzfUH6PYUQ9
         FV7g==
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=n72OdgheFy3spSP2/qtHiEp32kmwIvy/tWOEyR7anSw=;
        b=czIqiYJRxn6jLhxnPTwX7Fw+15i0Rq5jYPKIpWh6rTIAFyMd5CmK/ngmTvLaLpMYRv
         19pru5P5g/Rzc5hw1VcEmj3F2G90q3kX9ReNb5dH1KRsfGRCnREGduV44Jfo2LDFIGFh
         ODErNg2pKpoARknzTtObPa15mJ07lfMCeM1LBdGjTSoP7oASgOLAK2eW4LpalTkpd8tp
         USs8K6rVxmX0AZHAZj23tHFD00babEik9NbzdA+VaK+68wYz+0y9ai0MLiN9I8uUWc6X
         7FDqgCwvh3vjLwwkLsho3FfHu2jy1l5m+6Fc9e/WsCdicUoumDB9Mc4PVJbsmD4n76fV
         JNng==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=TUzZX0A7;
       spf=pass (google.com: domain of nliber@gmail.com designates 2607:f8b0:400e:c00::241 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=n72OdgheFy3spSP2/qtHiEp32kmwIvy/tWOEyR7anSw=;
        b=lq/Kpet+7Xh2bkUt5BZeGdv331OOApWg/Rbt8SAmiTJrkCmDqN2RyelIHPvBurGAQt
         D19fWmfopORIY7zkdNfB4qmUZJkMtJeaX2y8tEXGs8ImA3ZJEy1vDA16BmwAwQQalzi4
         PsSiPtOgYFHnS7DBLjOXcQJn35K+fkY2fU8FKhPTCtwplrr6alxxcTV/0IZeI5HRAd9y
         mIg9OJTbdXyCg/e3QQzXGaP9Aowkz3mE0nMxyKmoTiFTYEKGnCC2/erFKhYId4+NlWG2
         U4RKDushBDLsiREzChlkdkG/yfLPQmqhuv8IrsH7Wu0vR62bx/f77opCeoQ4UfLjc6oe
         14+A==
X-Gm-Message-State: AHYfb5iaAomOivwlJItNHP1zLdW5xc9mJ4Gmq6BpeD/TyhHTOTgf4XZL
	wHasMyqI2+Z14w==
X-Google-Smtp-Source: ADKCNb6YObZbIAYYgGZohkxKZ3njAyaj099ix1O/yr26AVpXOni5wJKd3CPPGCcOI3uqqd+tRBTQEA==
X-Received: by 10.99.157.7 with SMTP id i7mr1191108pgd.25.1504106245334;
        Wed, 30 Aug 2017 08:17:25 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.36.34.7 with SMTP id o7ls3382170ito.16.gmail; Wed, 30 Aug 2017
 08:17:22 -0700 (PDT)
X-Received: by 10.99.113.10 with SMTP id m10mr1939573pgc.325.1504106242890;
        Wed, 30 Aug 2017 08:17:22 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1504106242; cv=none;
        d=google.com; s=arc-20160816;
        b=xFSKPOaCvyMUqNebP7pEMGrtv6Jlfis8VINymHJ+DutoD2cq5PLuf44Aqw19G65lZJ
         9VVc8HGVPvtD+CwLkwpX7v437dLpkqaknl/LaJeGCe0ICx2KEAeYC3+aWxMTeKjCIfxT
         XfAjHhYm+mR4jta7GS9G3AsWJjJGRrYIHtD9qrs2DGQS7OU6dxwJ3elkgYqAIC9VXpNr
         A3Gg847PQHco8bhY4Mdq278gEb2yuOkLmAy+EemjsdCiKEvtuZzX42Akn1FbJ/YZnICN
         S+oQ8yDXkLs+cW2s11QXAF8TUNSOibwthyuuG5zD/mPbtdBMoptIjy1wk2V0aLkpc4q7
         B37Q==
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=U+a/rtni1o73uu+L0hIqm10JQAVzPAV1p43pMXHLQDI=;
        b=yHIqWLlrW1VmFxfiyW9L80EoR43w2iLEELww4p4e1s7r1W0XgdHgDC07pXDWs/bc2I
         JMkha2sydLV6WP/8cKyOTD1DPLUOUd1XCk9DpkmLW3BnQy1EML2doVlj5SYaejeZ+r9K
         uI4tQAMN2aMWk3sOVWJR/gEengaajQ3IG8rbK7QL1f57A9ObElXNv/0gEYo9S68E54hS
         F3WXMfHSfotzBOnvCdu5fZmgg5kk23k/yOjKi/HObux+n9v7C6tG5GwVd4nFQZatxr7u
         EQoaEiF+anl9rJ6dvmA6HtK4rwqujACbYpVtnPPGT2ufHsGuy36fvcIbrY4z/dUCkOCd
         oHeA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=TUzZX0A7;
       spf=pass (google.com: domain of nliber@gmail.com designates 2607:f8b0:400e:c00::241 as permitted sender) smtp.mailfrom=nliber@gmail.com
Original-Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com. [2607:f8b0:400e:c00::241])
        by mx.google.com with ESMTPS id 143si4410319pfc.482.2017.08.30.08.17.22
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 30 Aug 2017 08:17:22 -0700 (PDT)
Received-SPF: pass (google.com: domain of nliber@gmail.com designates 2607:f8b0:400e:c00::241 as permitted sender) client-ip=2607:f8b0:400e:c00::241;
Original-Received: by mail-pf0-x241.google.com with SMTP id r187so4487372pfr.5
        for <std-proposals@isocpp.org>; Wed, 30 Aug 2017 08:17:22 -0700 (PDT)
X-Received: by 10.84.215.205 with SMTP id g13mr2449966plj.233.1504106242352;
 Wed, 30 Aug 2017 08:17:22 -0700 (PDT)
Original-Sender: nliber@gmail.com
Original-Received: by 10.100.133.80 with HTTP; Wed, 30 Aug 2017 08:16:41 -0700 (PDT)
In-Reply-To: <74349bfe-bb5a-a2ce-4142-5d46103d1d9f@technion.ac.il>
X-Original-Sender: nevin@eviloverlord.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=TUzZX0A7;       spf=pass
 (google.com: domain of nliber@gmail.com designates 2607:f8b0:400e:c00::241 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:34224
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/34224>

--f403045c57dc47ac3d0557fa06cf
Content-Type: text/plain; charset="UTF-8"

On Wed, Aug 30, 2017 at 2:59 AM, Eyal Rozenberg <eyalroz@technion.ac.il>
wrote:

> You would be using an unnamed struct for the same reason you use an
> "unnamed type" for non-struct variables with auto. We write:
>
>   auto x = expr;
>

Even though you don't spell it out, that type already has a name.  auto
doesn't create a new type.

You are proposing yet another syntax to create a new type.  As for its use,
about the only thing you can do with it is pass it to a template function
(or equivalent).  That use seems fairly marginal.  You need much better
usage examples for motivation.
-- 
 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%2BMPQTnqdWLQ1UV8jF173jDXYQQx-abwwNV3v3iknocJ%3DQ%40mail.gmail.com.

--f403045c57dc47ac3d0557fa06cf
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Wed, Aug 30, 2017 at 2:59 AM, Eyal Rozenberg <span dir=
=3D"ltr">&lt;<a href=3D"mailto:eyalroz@technion.ac.il" target=3D"_blank">ey=
alroz@technion.ac.il</a>&gt;</span> wrote:<br><div class=3D"gmail_extra"><d=
iv class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:=
0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You would be using =
an unnamed struct for the same reason you use an<br>
&quot;unnamed type&quot; for non-struct variables with auto. We write:<br>
<br>
=C2=A0 auto x =3D expr;<br></blockquote><div><br></div><div>Even though you=
 don&#39;t spell it out, that type already has a name. =C2=A0auto doesn&#39=
;t create a new type.</div><div><br></div><div>You are proposing yet anothe=
r syntax to create a new type.=C2=A0 As for its use, about the only thing y=
ou can do with it is pass it to a template function (or equivalent).=C2=A0 =
That use seems fairly marginal.=C2=A0 You need much better usage examples f=
or motivation.</div></div>-- <br><div class=3D"gmail_signature" data-smartm=
ail=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div>=C2=A0N=
evin &quot;:-)&quot; Liber=C2=A0 &lt;mailto:<a href=3D"mailto:nevin@evilove=
rlord.com" target=3D"_blank">nevin@eviloverlord.com</a>&gt; =C2=A0+1-847-69=
1-1404</div></div></div></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%2BMPQTnqdWLQ1UV8jF173jDXYQQx-a=
bwwNV3v3iknocJ%3DQ%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAGg_6%2BMPQT=
nqdWLQ1UV8jF173jDXYQQx-abwwNV3v3iknocJ%3DQ%40mail.gmail.com</a>.<br />

--f403045c57dc47ac3d0557fa06cf--

.
