Swift - Optionals
Why does Swift use the
? suffix for optionals instead of allowing nil for all types by default?? suffix for optionals instead of allowing nil for all types by default?? suffix clearly marks variables that can be nil, making code safer and easier to understand.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions