<div style="white-space:pre-wrap">Ensure(TM) ...has a little much sugar for my wants in a drink<br><br>I get and like the suggestion from a grammar pov however guard is a little more forceful in terminology which aligns with the fact that you cannot proceed past the guard unless the condition is met. (I have a vision of a little guard standing at his guard post checking papers)<br><br>-Shawn</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Feb 22, 2016 at 9:01 AM John Flanagan via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<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">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><br></div><div>Example:</div><div><br></div><div><font face="Courier">ensure foo != nil else {</font></div><div><font face="Courier">   return;</font></div><div><font face="Courier">}</font></div><div><br></div><div>-John</div></div>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div>