<div dir="ltr"><div class="markdown-here-wrapper" style=""><p style="margin:0px 0px 1.2em!important">Tino,</p>
<p style="margin:0px 0px 1.2em!important">In what way is this “hiding” protocol conformance? In the examples, <code style="font-size:1em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">MyClass</code> is declaring conformance to <code style="font-size:1em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">A</code> and <code style="font-size:1em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">B</code> via the <code style="font-size:1em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">Useful</code> protocol composition. Perhaps I should have made it clearer which bits are new/proposed: Only the <code style="font-size:1em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">implements</code> word is new here, the protocol composition syntax (<code style="font-size:1em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">A & B</code>) already exists.</p>
<p style="margin:0px 0px 1.2em!important">You’re probably right that this is an additive (4.1) thing. But personally I see no harm in building up a backlog of useful proposals to be reviewed next year. The knowledge of what’s to come may also help influence thinking on what’s to come next. Should such discussions be flagged as additive in the subject somehow? I think I asked this before but forgot or missed if there was a response.<br>On Fri, 25 Nov 2016 at 16:21 Tino Heth <<a href="mailto:2th@gmx.de" class="gmail_msg" target="_blank">2th@gmx.de</a>> wrote:</p>
<p style="margin:0px 0px 1.2em!important"></p><div class="markdown-here-exclude"><p></p><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Kotlin has a imho really nice solution for this: Because constructor parameters appear right after the class declaration, you can refer to them in the inheritance-clause.<br class="gmail_msg">
<br class="gmail_msg">
Protocol conformance is a quite important aspect of a type, so I'm not sure if it wise to allow "hiding" it — and I hope the promised macro-system will allow forwarding, so that there is no special syntax needed.<br class="gmail_msg">
<br class="gmail_msg">
Bottom line:<br class="gmail_msg">
Imho it's not the right time for serious discussion (serious means: with the goal of a accepted proposal ;-)</blockquote><p></p></div><p style="margin:0px 0px 1.2em!important"></p>
<div title="MDH:PGRpdiBkaXI9Imx0ciIgY2xhc3M9ImdtYWlsX21zZyI+PGRpdiBjbGFzcz0iZ21haWxfbXNnIj48
ZGl2IGNsYXNzPSJnbWFpbF9tc2ciPlRpbm8sPGJyIGNsYXNzPSJnbWFpbF9tc2ciPjxiciBjbGFz
cz0iZ21haWxfbXNnIj48L2Rpdj5JbiB3aGF0IHdheSBpcyB0aGlzICJoaWRpbmciIHByb3RvY29s
IGNvbmZvcm1hbmNlPyBJbiB0aGUgZXhhbXBsZXMsIGBNeUNsYXNzYCBpcyBkZWNsYXJpbmcgY29u
Zm9ybWFuY2UgdG8gYEFgIGFuZCBgQmAgdmlhIHRoZSBgVXNlZnVsYCBwcm90b2NvbCBjb21wb3Np
dGlvbi4gUGVyaGFwcyBJIHNob3VsZCBoYXZlIG1hZGUgaXQgY2xlYXJlciB3aGljaCBiaXRzIGFy
ZSBuZXcvcHJvcG9zZWQ6IE9ubHkgdGhlIGBpbXBsZW1lbnRzYCB3b3JkIGlzIG5ldyBoZXJlLCB0
aGUgcHJvdG9jb2wgY29tcG9zaXRpb24gc3ludGF4IChgQSAmYW1wOyBCYCkgYWxyZWFkeSBleGlz
d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