A common feature in many languages, the Null Coalescing Operator, is a binary operator often used to shorten expressions of the type:
x = possiblyNullValue N
hope this will help you
yes , Now it is added in swift
little Explanation
var anumber:Int? = someValue
var banumber = 2
anumber = ( anumber != nil) ? anumber : banumber ------- (a)
println(anumber!)
now instead of writing all (a) this we can just use this ->
anumber = anumber ?? banumber
and
The operator can also be used multiple times in the same expression. like
firstNumber ?? secondNumber ?? thirdNumber.