<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=""><div class="">I’m not strictly against the proposal, but I don’t think that renaming to ensure adds anything.</div><div class=""><br class=""></div><div class="">guard is essentially a neat feature for programming defensively, so guard to me is stronger fit thematically in that sense.</div><br class=""><div><blockquote type="cite" class=""><div class="">On 19 Feb 2016, at 21:49, John Flanagan 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 style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">The functionality of ‘guard’ is great and this proposal has nothing to do with changing that. The only suggestion is that the word ‘ensure’ would better communicate what a ‘guard’ statement does to those encountering it for the first time and would make code more readable in general.<div class=""><br class=""></div><div class="">Example:</div><div class=""><br class=""></div><div class=""><font face="Courier" class="">ensure foo != nil else {</font></div><div class=""><font face="Courier" class="">&nbsp; &nbsp;return;</font></div><div class=""><font face="Courier" class="">}</font></div><div class=""><br class=""></div><div class="">-John</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>