<div dir="ltr">How is this different from the rejected ??= proposal?</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 27, 2016 at 2:34 PM, Amir Michail 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">Consider the use of “!” in the following:<br>
<br>
var x: Int? = 5<br>
<br>
x! = 2 // “!” is used to ensure non-nil value before assignment<br>
<br>
The idea is to have a similar method for ensuring a nil value.<br>
<br>
So instead of writing:<br>
<br>
precondition( x == nil )<br>
x = 3<br>
<br>
You could write:<br>
<br>
x := 3<br>
<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>