Swift

logo_optional

Nil-Coalescing Operator

Nil-Coalescing Operator Don’t be confused by the “??”—we’re not asking a question here. Today, we’re going to study the ?? operator. This is a super common operator that many developers use without knowing its official name. But even a mere operator deserves to be called by its true name so that it can “bloom” into […]

Nil-Coalescing Operator Read More »

Swift Optional 1

Waht is Optionals

1. What is an Optional? What exactly is an optional? Is it something optional? Confusing, right? If you’ve ever worked with Swift, you’ve probably seen something like this ? symbol pop up frequently. That question mark that appears after a variable type is what makes it an optional. Let’s define it: An optional is used

Waht is Optionals Read More »