SwiftMeesho
Optionals and IUOs
Which of these three lines compile? Pick all that apply.
let a: String = nil
let b: String? = nil
let c: String! = nilPick all that apply
Optionals and IUOs
Which of these three lines compile? Pick all that apply.
let a: String = nil
let b: String? = nil
let c: String! = nilPick all that apply
SwiftShort answerIntro
Why does Swift have optionals?
#optional #nil
SwiftShort answerIntro
Your team's code review rules include "no force unwrapping (!)." Why have a rule like tha…
#optional #iuo
SwiftMultiple choiceIntro
Which of these unwrap an optional safely? Pick all that apply.
#optional
SwiftMultiple choiceIntro
Given let view: UIView = UILabel(), which of these casts can crash at runtime?
#optional