Avatar
Kishikawa Katsumi 12/16/2018 9:02 PM
@swiftbot --version latest extension String.StringInterpolation { mutating func appendInterpolation<T>(_ val: T?, default defaultValue: String) { if let val = val { appendInterpolation(val) } else { defaultValue.write(to: &self) } } } let value: Int? = nil print("The value is: \(value, default: "<nil>")")
🛠 1