> On May 12, 2016, at 2:38 PM, Tod Cunningham via swift-evolution 
> <swift-evolution@swift.org> wrote:
> 
> I ended up creating a ??= operator about a month ago to do something very 
> similar.  It’s a shame it won’t be made part of the official library.  
> Although, it is very easy to add.
> 
> 
> Just like the ?? operator the default value is only evaluated if the optional 
> in nil.  However, unlike ?? it will
> 
> change the optional to be equal to the value on the right, iff the optional 
> was nil.

We formally discussed & rejected this already:
http://article.gmane.org/gmane.comp.lang.swift.evolution/7694

-Chris
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to