<div dir="ltr">On Fri, Feb 17, 2017 at 1:22 PM, Adrian Zubarev via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div class="m_-6162613740908249478bloop_markdown"><p>Sure thing, but that’s not what I was asking about. Kevin made a protocol that conforms to <code>Error</code> where all the his enums conformed to <code>MyError</code> protocol. That way we’re losing all enum cases and are not really a step further as before.</p></div></div></blockquote><div><br></div><div>Sorry, can you elaborate? What do you mean by losing enum cases?</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div class="m_-6162613740908249478bloop_original_html"><div><div class="h5"><p class="m_-6162613740908249478airmail_on">Am 17. Februar 2017 um 20:18:48, David Sweeris (<a href="mailto:davesweeris@mac.com" target="_blank">davesweeris@mac.com</a>) schrieb:</p> <blockquote type="cite" class="m_-6162613740908249478clean_bq"><span><div style="word-wrap:break-word"><div></div><div>
<br>
<div>
<blockquote type="cite">
<div>On Feb 17, 2017, at 11:12 AM, Adrian Zubarev via
swift-evolution <<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>> wrote:</div>
<br class="m_-6162613740908249478Apple-interchange-newline">
<div>
<div class="m_-6162613740908249478bloop_markdown" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(254,254,254)">
<p style="margin:15px 0px">
Is the throwing type always a protocol? In your example it is, but
is this going to be always the case?</p>
</div>
</div>
</blockquote>
</div>
I think right now, there’s a bit of compiler magic in that you can
only throw something that conforms to `Error`.
<div><br></div>
<div>- Dave Sweeris</div>
</div></div></span></blockquote></div></div></div><div class="m_-6162613740908249478bloop_markdown"><p></p></div></div><br>______________________________<wbr>_________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-<wbr>evolution</a><br>
<br></blockquote></div><br></div></div>