bernhard
02/14/2017, 5:09 PMif let - else
syntax and didn't find anything appropriate, I also tried to write something on my own but I am still not quite happy, how do you write code which is something like this in swift/pseudo:
val someValue: String? = "canBeNullOrNot"
if let someRealValue = someValue {
doSomethingWithTheString(someRealValue)
} else {
logThisCase()
}