220 34519 <CAM76qmvKL59OOQpeetqbZ75Yeq3kgooy8DxYkXngh9faiJy0Mg@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Manuel Bergler <berglerma@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: BOYCOTT interface keyword proposal!
Date: Fri, 29 Sep 2017 22:27:48 +0200
Lines: 124
Approved: news@gmane.org
Message-ID: <CAM76qmvKL59OOQpeetqbZ75Yeq3kgooy8DxYkXngh9faiJy0Mg@mail.gmail.com>
References: <af1b40e1-8c4e-43af-a2d8-ae4f87382ca8@isocpp.org>
 <69c7d152-2104-f215-2b87-ce7b22b94fe1@gmail.com> <80a6f4f1-cfe2-4130-adb4-2b4d0db2ab07@isocpp.org>
 <c1435cfc-453f-55f4-707e-37b025c18e07@gmail.com> <aa2e1845-bf5b-465c-8d90-3c2c068dee8b@isocpp.org>
 <d7f09ac4-c401-3778-867d-a15c595ee4a9@gmail.com> <4e510005-af95-4a39-a261-b993ffb7a20b@isocpp.org>
 <CAGsORuCxACbik8Wh9AD2zAkD5=QWq53dcS6Np5xxm0mMZv8P5Q@mail.gmail.com> <5facc504-0c16-431c-ac04-313039185938@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="001a113cde84c85936055a59db36"
X-Trace: blaine.gmane.org 1506716872 22345 195.159.176.226 (29 Sep 2017 20:27:52 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 29 Sep 2017 20:27:52 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDOZBAUFX4MRBRWZXLHAKGQEYCB25KQ@isocpp.org Fri Sep 29 22:27:48 2017
Return-path: <std-proposals+bncBDOZBAUFX4MRBRWZXLHAKGQEYCB25KQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f71.google.com ([209.85.218.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDOZBAUFX4MRBRWZXLHAKGQEYCB25KQ@isocpp.org>)
	id 1dy1su-00059c-28
	for gclcip-std-proposals@m.gmane.org; Fri, 29 Sep 2017 22:27:44 +0200
Original-Received: by mail-oi0-f71.google.com with SMTP id n82sf569927oib.14
        for <gclcip-std-proposals@m.gmane.org>; Fri, 29 Sep 2017 13:27:51 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1506716871; cv=pass;
        d=google.com; s=arc-20160816;
        b=YqoT4HKDMeQGcNBsFOVOkSqia3DcZZyA9aTAPcqQKIx/BdunVWje72VCxenvp6LZVZ
         N/JJ9Ll+q/i6KQgOZlwsa4nWh+nTO8YvbLFzalUQkwT6zKZI6ycXpWOJe6DbNxDjWtJc
         Ag9JWxWXuru4Mpw5JE07TDaBZbIHAccHERg4XmaHDr+GHCueJhQarpxFFED/KgYKygd4
         C9nAKfNR0FN8kLOkCYpI5nJCJFh0yeEwiG8odCpPPk694E4UYNB5TybyAwWWGf0VENxF
         4DecgvMFv0d/Lsn1OyhiFW1nKePuQoF5yWbJ1qTkNuz4rJPgdOfWnqOie7AkUKBoIoH1
         tGUw==
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:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=yXRs2tW0rWR4e47pueI/sJnvMOtTUYbqm5RiohAgRL0=;
        b=VSRk4jf5uPy5HW2BOtbZbDD15xDLfpofsTRlMLVBaQ/cf3Z9op94gnfKDczZA6g9C1
         Zxaun1XRAxrU1WYEHNzZSehLoRc8/80i35dSU4aOOCrjUPnK2yFD77WJZfA4zA8gSay6
         VtHm5lrE8lGZ1mGm8EMB4hDkSu6PpuaIVuTkkcjYsOOYBWcHjJAC2RQFYSC6KOkSxHLu
         ZyK0AV9HV2XTayCYB2s957fWo+f0/ZQwvDToL0oqgZcM4ijbz8X5dEiYVo2/SfEmO2p5
         viLBTF8mvVyE7LeXbc0FhWPVDpsbizyj0xlOI7ORz7745+F5PLpP5M7t13Ylu3EXH/l0
         kSIg==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=VHuXCula;
       spf=pass (google.com: domain of berglerma@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=berglerma@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=yXRs2tW0rWR4e47pueI/sJnvMOtTUYbqm5RiohAgRL0=;
        b=KOIbkPCFEBTmi8HEDqB0s01LnapizzUPSsRhVTbXdMOF7VkuoQF91w0VrR/f3uBZcL
         3iSiRV+HLDsAcAyRhsQAdC2fdpf74nJO/aUK2pPjD9XL5EQoTZXfjauzmFwQl4C6wecB
         iuoINQiwijW0rv7Sa0bDlIvobClYaRQh8+QUw8DjzkWxj3FZVDKPBPYE8b4rt+Ptb+lf
         vzF6WATBNyCsEhp00NYI4tSXeDCbW/2vlb9tT7B+jMRV58DknZCo7841s1aib8oweAXj
         6uVI2FKSJMAEIJ9YI//lpSz+/ZwBpT4fsGEjjCgq7lzUG4G3c2GTr7WAN5PuiAVqtDBU
         Ic7A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version: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=yXRs2tW0rWR4e47pueI/sJnvMOtTUYbqm5RiohAgRL0=;
        b=dKDnKRhNoYgLokDNHbmEKhsmxPcHUDz3sNLo7BvmQv0K4oT7YlrqyCnsU2dQ1Vf4lc
         gvEZVaitAUHHU7oeoOuMdRvqvjciK9cpCHZPf7leElsgyIE8zc4eMlI15fCxkbO9WsMr
         EHcqH7+ONM/lgii2L3JbeXjGeUiWr09340p/79NqmDGhAeRVCTNZwwZg5I1rE6P2T2n4
         Ng99WxFPLEhuUhvuMQn6CbkkUSrOP4Z+AhdQW2LEA3oeSQxoxRB2Su/UCDAetimiwNsS
         U+j/LBaxB/vVQtq1H+hzCGUtRJA6eHOPhPGZWA1hb6ZuRRr57yJjynBaxzxRF0wWqKO6
         IBPw==
X-Gm-Message-State: AMCzsaUn8B/27WQ7klM7gbo3KW7tR1qXHec8zAXjbaia8HRYxuSYaeEF
	LdTMUETVwMWLqI4d3LBD+K2fIA==
X-Google-Smtp-Source: AOwi7QCIQ4mBmrf+6SoTla3EfaIe8Hhtoq/utdIDVVLo6VCVqEhZ84bMCtDEq1loN2jk0kb4WiCYgg==
X-Received: by 10.157.14.125 with SMTP id n58mr2144866otd.111.1506716871301;
        Fri, 29 Sep 2017 13:27:51 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.202.56.134 with SMTP id f128ls1622671oia.1.gmail; Fri, 29 Sep
 2017 13:27:50 -0700 (PDT)
X-Received: by 10.157.2.73 with SMTP id 67mr3708904otb.221.1506716869965;
        Fri, 29 Sep 2017 13:27:49 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1506716869; cv=none;
        d=google.com; s=arc-20160816;
        b=vCN9efWtEN1h9bvQrmSpsa1NBpYyz6noUuo3pT3Z2Tf1L6uTTs+zregP46eVrTU+yt
         feffq+pykDlVSoo+Q0ML7lLV/lR71VRGgy+lnrCagZtFKn49/fKbUMY//uDw1i/YjYGQ
         SYHy5x3Gd0T2xlKYOWvN+fDdtwhWTdFaZ55LIYQL9cwfBK6D3UlvoMEnxX5SvVm/AMcL
         2xSLfY9h5IK98l6QgBQ7k0aR0Bs85g7q8MFEtLBgIBW+QDX231TXFKXLOM7QV60mnrE7
         wX/N7cdSFTJRfwhFeBmFavFtkIyTIj4VeXnMb2aJ0kDqI9Gfo/dRQILX8iFXa/AyvQpQ
         m23A==
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:mime-version
         :dkim-signature:arc-authentication-results;
        bh=2bAV0TyMYW+NhMnpUtOAzLOJ5JXb7S35UyvY/N9nccY=;
        b=iW7I3VbQ33rexsbLT2x6yYrCm6Cpz/GCagrVpYrADock5inVxvlNuG2qaysNtR+CoZ
         wAnCMWiocQV4lJMjV28VytDkbX36u1AgK6RwP0SI2LTYO5wAJYtziaAy9f5915qJAzYt
         jDNF4Cv9pA8+WwvEXhHotNJeWY6Wr0DQVksAJ9TGiK1B+H0Z1GoLYgmy/fR4AxZoayX0
         kHvbj59CDD5tHaQlWKngGUoW0U4Vj7sto2lUqCA5FSoKrdplE+BhdqtOh+cVRCgTpNTq
         dyulbUIpfaDqCX7hi4cIHrhfBeVpbJpr+4kQIeOi1bAqLueL0SdcSgapFF7XzqrbDJv/
         LzDA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=VHuXCula;
       spf=pass (google.com: domain of berglerma@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=berglerma@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id l66sor1139069oib.202.2017.09.29.13.27.49
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Fri, 29 Sep 2017 13:27:49 -0700 (PDT)
Received-SPF: pass (google.com: domain of berglerma@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 10.202.57.130 with SMTP id g124mr3177163oia.296.1506716869481;
 Fri, 29 Sep 2017 13:27:49 -0700 (PDT)
Original-Received: by 10.74.129.26 with HTTP; Fri, 29 Sep 2017 13:27:48 -0700 (PDT)
In-Reply-To: <5facc504-0c16-431c-ac04-313039185938@isocpp.org>
X-Original-Sender: berglerma@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=VHuXCula;       spf=pass
 (google.com: domain of berglerma@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=berglerma@gmail.com;       dmarc=pass (p=NONE
 sp=NONE dis=NONE) header.from=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:34519
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/34519>

--001a113cde84c85936055a59db36
Content-Type: text/plain; charset="UTF-8"

2017-09-29 22:19 GMT+02:00 <euloanty@live.com>:

> You don't need that in C++. Type erasure can do everything you want.
>

Depending on your implementation, the type-erasure itself also might be
implemented in terms of an abstract interface  (see e.g. "Sean Parent's
Inheritance is the base class of evil", or Johnathan's reply) . Once we
have meta-classes, since it relies on reflection and compile-time code
injection, you can easily write a generic type-erasure wrapper

template <Interface I>
class type_erased;

that can be used with any user-defined `interface`. So an `interface`
meta-class still provides value in documenting the interface you have, even
if you don't use it in the Java sense.


> On Friday, September 29, 2017 at 11:57:38 AM UTC-4, Zhihao Yuan wrote:
>>
>> On Sep 29, 2017 5:31 AM, <eulo...@live.com> wrote:
>>
>> Conflict with concepts lite! I HATE OOP!
>>
>>
>>
>> I damn love OOP and Java, Ha Ha Ha!
>>
>> --
>> Zhihao
>>
> --
> 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/5facc504-0c16-431c-
> ac04-313039185938%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/5facc504-0c16-431c-ac04-313039185938%40isocpp.org?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAM76qmvKL59OOQpeetqbZ75Yeq3kgooy8DxYkXngh9faiJy0Mg%40mail.gmail.com.

--001a113cde84c85936055a59db36
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">2017=
-09-29 22:19 GMT+02:00  <span dir=3D"ltr">&lt;<a href=3D"mailto:euloanty@li=
ve.com" target=3D"_blank">euloanty@live.com</a>&gt;</span>:<br><blockquote =
class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid=
;padding-left:1ex"><div dir=3D"ltr">You don&#39;t need that in C++. Type er=
asure can do everything you want.<br></div></blockquote><div><br></div><div=
>Depending on your implementation, the type-erasure itself also might be im=
plemented in terms of an abstract interface=C2=A0 (see e.g. &quot;Sean Pare=
nt&#39;s Inheritance is the base class of evil&quot;, or Johnathan&#39;s re=
ply) . Once we have meta-classes, since it relies on reflection and compile=
-time code injection, you can easily write a generic type-erasure wrapper</=
div></div><div class=3D"gmail_quote"><br></div><div class=3D"gmail_quote">t=
emplate &lt;Interface I&gt;</div><div class=3D"gmail_quote">class type_eras=
ed;</div><div class=3D"gmail_quote"><br></div><div class=3D"gmail_quote">th=
at can be used with any user-defined `interface`. So an `interface` meta-cl=
ass still provides value in documenting the interface you have, even if you=
 don&#39;t use it in the Java sense.<br><div><br></div><blockquote class=3D=
"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding=
-left:1ex"><div dir=3D"ltr"><br>On Friday, September 29, 2017 at 11:57:38 A=
M UTC-4, Zhihao Yuan wrote:<span class=3D""><blockquote class=3D"gmail_quot=
e" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-l=
eft:1ex"><div dir=3D"auto"><div><div><div class=3D"gmail_quote">On Sep 29, =
2017 5:31 AM,  &lt;<a rel=3D"nofollow">eulo...@live.com</a>&gt; wrote:<br t=
ype=3D"attribution"><blockquote style=3D"margin:0 0 0 .8ex;border-left:1px =
#ccc solid;padding-left:1ex"><div dir=3D"ltr">Conflict with concepts lite! =
I HATE OOP!<br></div></blockquote></div></div></div><div dir=3D"auto"><br><=
/div><div dir=3D"auto"><br></div><div dir=3D"auto">I damn love OOP and Java=
, Ha Ha Ha!</div><div dir=3D"auto"><br></div><div dir=3D"auto">--</div><div=
 dir=3D"auto">Zhihao</div></div>
</blockquote></span></div><span class=3D"">

<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" target=3D"_=
blank">std-proposals+unsubscribe@<wbr>isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br></span>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/5facc504-0c16-431c-ac04-313039185938%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank">=
https://groups.google.com/a/<wbr>isocpp.org/d/msgid/std-<wbr>proposals/5fac=
c504-0c16-431c-<wbr>ac04-313039185938%40isocpp.org</a><wbr>.<br>
</blockquote></div><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/CAM76qmvKL59OOQpeetqbZ75Yeq3kgooy8DxY=
kXngh9faiJy0Mg%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">htt=
ps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAM76qmvKL59OOQpe=
etqbZ75Yeq3kgooy8DxYkXngh9faiJy0Mg%40mail.gmail.com</a>.<br />

--001a113cde84c85936055a59db36--

.
