Thursday, January 18, 2018

What is the use of double question marks ???

To provide a default value for a variable.


let missingName : String? = nil
let realName : String? = “John Doe"
let existentName : String = missingName ?? realName