<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Begin forwarded message:</div><br class="Apple-interchange-newline"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Victor Gao &lt;<a href="mailto:victorgao44@gmail.com" class="">victorgao44@gmail.com</a>&gt;<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: [swift-evolution] [swift evolution] [proposal] Proposal to add "implement" keyword to denote protocol method implementation</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">March 18, 2016 at 21:48:53 ADT<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Ross O'Brien &lt;<a href="mailto:narrativium+swift@gmail.com" class="">narrativium+swift@gmail.com</a>&gt;<br class=""></span></div><br class=""><div class=""><div class="">Hi Ross,<br class=""><br class="">That’s a good point actually, your point about retroactive modeling.<br class=""><br class="">Correct me if I’m wrong, but what you are saying is that if you have a class that has some methods, and then you decided to create a protocol that has the methods of the class. If you want the class to conform to the protocol, you want to be able to do so without having to add the “implement” keyword in front of every method implementation. Is that right?<br class=""><br class="">I also understand that one of the problems with the “implement” keyword: when you create an extension that adds a protocol conformance to a class, &nbsp;if that the class already has the methods defined in the protocol, it wouldn’t work because the methods in the class don’t have the “implement” keyword! This is a perplexing problem. <br class=""><br class="">Victor Gao<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Mar 18, 2016, at 21:11, Ross O'Brien &lt;<a href="mailto:narrativium+swift@gmail.com" class="">narrativium+swift@gmail.com</a>&gt; wrote:<br class=""><br class="">I recently had the misfortune of deleting what turned out to be a necessary function, because it was an optional requirement of a protocol and wasn't being called by any code in the project, so I would sympathise with this.<br class=""><br class="">On the other hand I've also written protocols composed entirely of functions that an established type already has, so I can retroactively have the type conform. (For example, there's no 'ArithmeticOperation' protocol which Int and Double both conform to, even though they both have a `+ (lhs:Self, rhs:Self) -&gt; Self` operator, so you have to roll your own... unless that should be a proposal itself.) It would be impossible to require a function to use your 'implements' keyword to conform to a protocol in an importing module.<br class=""><br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></body></html>