In Swift, how do I set an optional
foo = foo ?? "Hello"
foo ||= "Hello"
Such an operator was considered and rejected: https://github.com/apple/swift-evolution/blob/master/proposals/0024-optional-value-setter.md
The rational behind the rejection is supposed to be in the swift-evolution email list, but the link attached to the above points to SE-0025 instead of 24.
Here is the link to the rational (Edited because of Kenneth Bruno's comment blow): http://article.gmane.org/gmane.comp.lang.swift.evolution/7694