220 25006 <05ac78e7-3d30-4a99-ad0f-a3d29497e2ff@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: "'Walt Karas' via ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: "Components" template with implicitly defined
 partial specializations for all classes
Date: Sun, 6 Mar 2016 15:04:35 -0800 (PST)
Lines: 103
Approved: news@gmane.org
Message-ID: <05ac78e7-3d30-4a99-ad0f-a3d29497e2ff@isocpp.org>
References: <fd64d8c9-703d-45d8-a9b2-4b8a222c02f0@isocpp.org>
 <56D9E17F.2070202@wanadoo.fr>
 <2b0bcca0-0939-49f7-939b-4d688f8dfe34@isocpp.org>
 <324dbff9-84da-46f2-b2f3-3d9fe0cc2082@isocpp.org>
 <cc5a1d38-d1f0-4e41-9ee1-29bad95bb15e@isocpp.org>
 <56DA88DF.90000@wanadoo.fr>
 <c303f05a-15d4-445f-81f8-e12f67842bcc@isocpp.org>
 <7e46c46d-2e18-4cec-92c1-4f4d7fbc786b@isocpp.org>
 <d6495758-627e-434d-a867-ed473d869f47@isocpp.org>
 <39bbeb02-62b8-497b-8d65-5780a6baca97@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_419_1725283238.1457305475456"
X-Trace: ger.gmane.org 1457305483 30912 80.91.229.3 (6 Mar 2016 23:04:43 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 6 Mar 2016 23:04:43 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDFLZXWOVYIBBBHP6K3AKGQESHES3BA@isocpp.org Mon Mar 07 00:04:39 2016
Return-path: <std-proposals+bncBDFLZXWOVYIBBBHP6K3AKGQESHES3BA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pa0-f71.google.com ([209.85.220.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDFLZXWOVYIBBBHP6K3AKGQESHES3BA@isocpp.org>)
	id 1achj4-0003pr-Rs
	for gclcip-std-proposals@m.gmane.org; Mon, 07 Mar 2016 00:04:39 +0100
Original-Received: by mail-pa0-f71.google.com with SMTP id fl4sf147291495pad.2
        for <gclcip-std-proposals@m.gmane.org>; Sun, 06 Mar 2016 15:04:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to: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=6y5B5kl1R4kYjzUP/kbcOyHHlOpmPmnCciAnijfAQW0=;
        b=P7VKe0uTfjjLleBgY7+AAqlxOszx8KsV6zfK7gE1PWOKY+uAbpUyIwGyK6YZif161f
         n66qsylSHzXPZK+IwFaQ+2GT9wc7LDyvjiutx5j79McH8c1jqka2+P3//UcMqvV7+NLi
         lzknEtnwGg0PbxbIyw6b8hYm2MeSFDk+B4bl698Q2x6UCQm7GIcQJdPble/3Xj9AXPYp
         RGrIu7/hnnODw6Q+1EjLdhM/a1fCmMhpi1p3bzZxqR0MH+GZXeHjkXi5te5M5jTo3zDk
         jxq/pQKyzd0/Kc2kp9sYxfq8zL11Y3pr3w6H2NgvhwTOsC8vuFdb+qzJ/5dOXWwayWUB
         XMJg==
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: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=6y5B5kl1R4kYjzUP/kbcOyHHlOpmPmnCciAnijfAQW0=;
        b=c5f/I1LTp+yoiZu79A9g07YsupgGvO/UB7d4Fbo8TOALeUIhGe4ond/FJ/qah3aqzX
         LkfIVQcD5fH8YPNXdphQmRDNQSLz9h1aKQZT3wWLBHgytNAjD7TaHV2IVce4wDgYHT4j
         Mcqhn3OdikUpHP5cUYRFl1DzjoBs6LbTj74kF8t2xM7GEoSipmAFH+qVHLpl504r9ssd
         XLUIH+YyQKl1SF01GjXDP55GReDN2Lfuq+v5TQ9GQxmTDdjOnzUnEccFV1YJ7ytejl0d
         qj0WLngHzvKMquuWkOVihEUuNHbP0grM2oZyogiXlZ+XpMa7K9We/x7GWBwM5KIj6sK4
         nAvg==
X-Gm-Message-State: AD7BkJK8RI/Mfr1ec8U8ZDiIiFuqQnFjFgGLvSDg8kAAGn/QMgpScamTVb45J0Q1D0LYKw==
X-Received: by 10.66.124.200 with SMTP id mk8mr14237911pab.27.1457305477678;
        Sun, 06 Mar 2016 15:04:37 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.33.85 with SMTP id h82ls731186ioh.63.gmail; Sun, 06 Mar
 2016 15:04:36 -0800 (PST)
X-Received: by 10.50.110.41 with SMTP id hx9mr152346igb.2.1457305476664;
        Sun, 06 Mar 2016 15:04:36 -0800 (PST)
In-Reply-To: <39bbeb02-62b8-497b-8d65-5780a6baca97@isocpp.org>
X-Original-Sender: wkaras@yahoo.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>
X-Original-From: Walt Karas <wkaras@yahoo.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:25006
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/25006>

------=_Part_419_1725283238.1457305475456
Content-Type: multipart/alternative; 
	boundary="----=_Part_420_1848733167.1457305475457"

------=_Part_420_1848733167.1457305475457
Content-Type: text/plain; charset=UTF-8

On Sunday, March 6, 2016 at 2:40:30 PM UTC-5, Cleiton Santoia wrote:
>
>
>> Experience has shown that good layered architectures are generally 
>> advantageous.  A rule of thumb for a good layered architecture is to have 
>> one capability in a lower layer that supports multiple capabilities in a 
>> higher layer.  As opposed to supporting just one or some or all of those 
>> multiple capabilities in the lower layer.  The base language is the lowest 
>> layer of the C++ architecture.  Therefore, I think it's likely to be better 
>> to have a capability in the base language that allows for support of 
>> reasonably good generic comparison operators, generic stream input/output 
>> operators, generic std::hash, maybe generic JSON/XML input/output, etc 
>> using library code above the base layer.
>>
>
> In the both reflection proposals there are a sample of JSON serialization 
> (in sligtly different ways), but both static and without "mapping" 
> functions.
> You dont need that "Component" structure you proposed, you just expand the 
> pack thru folding. 
>
> Here the code <http://coliru.stacked-crooked.com/view?id=b907dd58003a2748> your 
> 10 liner 'operator ==' lib-olny on top of reflection ( from line 8 to 18 ). 
>
> Please pay attention on lines 10 and 16, in 10 we have a "template 
> folding" and in 16 we have the only line that will change after reflection 
> be accepted (hopefully).
>
>
Can you show an example that would work also if the class had private data 
members and base classes? 

-- 
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/05ac78e7-3d30-4a99-ad0f-a3d29497e2ff%40isocpp.org.

------=_Part_420_1848733167.1457305475457
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Sunday, March 6, 2016 at 2:40:30 PM UTC-5, Cleiton Sant=
oia wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left:=
 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr"><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-l=
eft:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><br></div><div>E=
xperience has shown that good layered architectures are generally advantage=
ous. =C2=A0A rule of thumb for a good layered architecture is to have one c=
apability in a lower layer that supports multiple capabilities in a higher =
layer. =C2=A0As opposed to supporting just one or some or all of those mult=
iple capabilities in the lower layer. =C2=A0The base language is the lowest=
 layer of the C++ architecture. =C2=A0Therefore, I think it&#39;s likely to=
 be better to have a capability in the base language that allows for suppor=
t of reasonably good generic comparison operators, generic stream input/out=
put operators, generic std::hash, maybe generic JSON/XML input/output, etc =
using library code above the base layer.</div></div></blockquote><div><br><=
/div><div>In the both reflection proposals there are a sample of JSON seria=
lization (in sligtly different ways), but both static and without &quot;map=
ping&quot; functions.<br></div><div>You dont need that &quot;Component&quot=
; structure you proposed, you just expand the pack thru folding.=C2=A0<br><=
/div><div><br></div><div>Here <a href=3D"http://coliru.stacked-crooked.com/=
view?id=3Db907dd58003a2748" target=3D"_blank" rel=3D"nofollow" onmousedown=
=3D"this.href=3D&#39;http://www.google.com/url?q\75http%3A%2F%2Fcoliru.stac=
ked-crooked.com%2Fview%3Fid%3Db907dd58003a2748\46sa\75D\46sntz\0751\46usg\7=
5AFQjCNHkLoGXQXLUjEgf9-GztbSysVY81g&#39;;return true;" onclick=3D"this.href=
=3D&#39;http://www.google.com/url?q\75http%3A%2F%2Fcoliru.stacked-crooked.c=
om%2Fview%3Fid%3Db907dd58003a2748\46sa\75D\46sntz\0751\46usg\75AFQjCNHkLoGX=
QXLUjEgf9-GztbSysVY81g&#39;;return true;">the code</a>=C2=A0your 10 liner &=
#39;operator =3D=3D&#39; lib-olny on top of reflection ( from line 8 to 18 =
).=C2=A0<br></div><div><br></div><div>Please pay attention on lines 10 and =
16, in 10 we have a &quot;template folding&quot; and in 16 we have the only=
 line that will change after reflection be accepted=C2=A0(hopefully).</div>=
<div><br></div></div></blockquote><div><br></div><div>Can you show an examp=
le that would work also if the class had private data members and base clas=
ses?=C2=A0</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/05ac78e7-3d30-4a99-ad0f-a3d29497e2ff%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/05ac78e7-3d30-4a99-ad0f-a3d29497e2ff=
%40isocpp.org</a>.<br />

------=_Part_420_1848733167.1457305475457--
------=_Part_419_1725283238.1457305475456--

.
