Swift Optional: Distinguish nil, Empty Text, and Zero
Test six inputs, preserve missing and invalid states, and verify when a nil-coalescing fallback runs instead of treating zero as absence.
Read articleTOPIC GUIDE
Choose an area and follow its newest articles or start from the foundations.
Go beyond memorizing syntax and understand why the language rules exist, from fundamentals and memory to concurrency and the Objective-C runtime.
Test six inputs, preserve missing and invalid states, and verify when a nil-coalescing fallback runs instead of treating zero as absence.
Read articleCreate and break a strong cycle, observe weak references becoming nil, and distinguish an optional unowned reference from automatic zeroing.
Read article