#2: Doubly Nested Optionals
Question
// Another Swift quiz question
— ahmet (@theswiftist) February 26, 2019
// from the Advanced Swift book by @objcio
let s2: String?? = .some(nil)
(s2 ?? "inner") ?? "outer"
// What'll be the output here?
Solution
53% percent of the voters got the right answer "outer" 👏🏻
— ahmet (@theswiftist) February 28, 2019
Here is the answer from the Advanced Swift book 👇 pic.twitter.com/xYc5l3Q9iK