<div id="compose" contenteditable="true" style="padding-left: 16px; padding-right: 16px; padding-bottom: 8px;"><div>I'm not sure that "sugar" is the right word, but I will give you that "guard" is probably too well established to be usurped by ensure™ just for the sake of grammar.&nbsp;</div><div><br></div><div>-John</div></div>
    <div class="gmail_quote">_____________________________<br>From: Shawn Erickson &lt;<a dir="ltr" href="mailto:shawnce@gmail.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="1">shawnce@gmail.com</a>&gt;<br>Sent: Monday, February 22, 2016 11:07 AM<br>Subject: Re: [swift-evolution] Rename 'guard' to 'ensure'<br>To: John Flanagan &lt;<a dir="ltr" href="mailto:john@jflan.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="4">john@jflan.com</a>&gt;,  &lt;<a dir="ltr" href="mailto:swift-evolution@swift.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="5">swift-evolution@swift.org</a>&gt;<br><br><br>    <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">&nbsp; &nbsp;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">swift-evolution@swift.org</a>    <br>     <a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a>    <br>    </blockquote>  </div>  <br><br></div>