<div dir="ltr">-1 from me.  I think I would rather have an if-then expression that would handle both False and True cases. <div><a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001944.html">https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001944.html</a><br><div><br></div><div>Also, in most cases I feel that guard would be a better choice. <div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 12, 2015 at 5:39 AM, James Campbell via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I propose adding the unless and if statements from ruby.<br>
<br>
Return false if james = nil<br>
<br>
This returns false if the variable James is nil<br>
. This line does it unless james is nil:<br>
<br>
Return false unless james = nil<br>
<br>
This has been really handy when working in ruby, reduces lines and pyramids of doom<br>
<br>
Sent from my iPhone<br>
_______________________________________________<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" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div><br></div>