<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">IMO, this has been one of many reasons why Swift doesn't have flags for its warnings yet: we do not want to fracture the language into dialects based on style, and we'd rather not have one person's code spew warnings in another person's build. (Admittedly, the warnings could be controlled by package preferences, but still.)</div><div class=""><br class=""></div><div class="">Jordan</div><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 8, 2015, at 15:26, Andrew Bennett via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Perhaps this is something where we could have a few compiler options to handle different preferences.<div class=""><br class=""></div><div class="">You could have options like:</div><div class="">&nbsp;* -Wexplicit-owner-capture (for explicit self)</div><div class="">&nbsp;* -Wexplicit-capture (for explicit non-trivial references)</div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Dec 9, 2015 at 10:15 AM, Kevin Ballard <span dir="ltr" class="">&lt;<a href="mailto:kevin@sb.org" target="_blank" class="">kevin@sb.org</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u class=""></u>




<div class=""><span class=""><div class="">On Tue, Dec 8, 2015, at 02:57 PM, Andrew Bennett wrote:<br class=""></div>
<blockquote type="cite" class=""><div dir="ltr" class=""><div class="">Kevin, I think you should definitely propose that (weak in outer and inner closure), it's one of the surprises that led me to this proposal. I also really like your suggesting of requiring explicit weak/strong on self, I think this could solve many cases.<br class=""></div>
</div>
</blockquote><div class="">&nbsp;</div>
</span><div class="">I submitted the proposal as&nbsp;<a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001134.html" target="_blank" class="">https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001134.html</a>&nbsp;(unfortunately it looks like the plain text version got garbled :/).<br class=""></div>
<div class="">&nbsp;</div>
<div class="">Regarding explicit weak/strong, my feeling is it would probably get too annoying to have to type `[self] in` everywhere. But it may be worth playing with.<span class="HOEnZb"><font color="#888888" class=""><br class=""></font></span></div><span class="HOEnZb"><font color="#888888" class="">
<div class="">&nbsp;</div>
<div class="">-Kevin Ballard</div>
</font></span></div>

</blockquote></div><br class=""></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=ZEz4qHYnXhPr3bBPu-2FxP4tN3HfWKL-2FtJpqkQ0gkOVSCdYRk-2FWQRe0goRr8MUkDAsVGlW46qFH3CtTaY-2FyzUNyvZQp9H0YwnZcewab57xAOefviJAnfX6dYLulnCEtiB9YTupDR3Zzyr84Wx8Xw5PiXs2UwJ-2BNwNLohTwap-2FXKIzLTaBOW9t6PkvCJEoROZ4ziNey8Sn8tbiTrFNFDD0eEMdZHL6-2Bbdk0j6dkAfPz8Cs-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></body></html>