[swift-evolution] Proposal: Deprecate optionals in string interpolation

Brent Royal-Gordon brent at architechies.com
Thu Jun 16 18:12:54 CDT 2016


> 	- func descriptionWithDefaultValue(_ defaultValue: String = "nil") -> String - which would return either the description of the value, or `defaultValue`.

This is the same as myOptional?.description ?? defaultValue, isn't it? So do we need it?

-- 
Brent Royal-Gordon
Architechies



More information about the swift-evolution mailing list