What is double question mark in Swift?

Double question mark is a nil-coalescing operator . In plain terms, it is just a shorthand for saying != nil . First it checks if the the return value is nil, if it is indeed nil, then the left value is presented, and if it is nil then the right value is presented.

Sizin İçin Seçtik  Almanya savaştan sonra nasıl kalkındı?

Leave a Reply

Your email address will not be published. Required fields are marked *