Swift - Optionals
Why does Swift recommend using
if let for optional binding instead of force unwrapping with !?if let for optional binding instead of force unwrapping with !?! crashes if the optional is nil.if let safely unwraps optionals only if they contain a value, avoiding crashes.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions