<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="">How about </div><div class=""><br class=""></div><div class=""><font face="Menlo" class="">guard reconstitute self else { return }</font></div><div class=""><span style="font-family: Palatino-Roman;" class=""><br class=""></span></div><div class=""><font face="Palatino-Roman" class="">-- E</font></div><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 12, 2016, at 11:28 AM, Jason Gregori via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><span style="font-size:13px" class="">I like Kenny and Kurt's points about handling the majority case and keeping the syntax simpler.</span><br style="font-size:13px" class=""><div style="font-size:13px" class=""><br class=""></div><div style="font-size:13px" class="">I feel like most of the time I want to break a retain cycle is for a completion block which returns void. Can we just handle that case and get rid of the else?<br class=""></div><div style="font-size:13px" class=""><br class=""></div><div style="font-size:13px" class="">Also, I don't think [guard self] is self explanatory enough. I think weak should be in there so it's much more obvious you are doing the weak/strong dance with self, otherwise it looks like you are guarding against a regular optional being nil.</div><div style="font-size:13px" class=""><br class=""></div><div style="font-size:13px" class="">So:</div><div style="font-size:13px" class=""><br class=""></div><div style="font-size:13px" class="">[guard weak self, other]</div></div>
_______________________________________________<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>