Say I have the following scenario:
var str: String
var num: Int?
if let num = num {
str = "\(num) foo"
}
else {
str == "? foo"
}
can the flow control statements be simplified to one line? I.e. something along the lines of:
var str: String
var num: Int?
str = "\(String(num) ?? "?") foo"