Manuel Meyer
Jan 26, 2024

in my opinion you are missing an imported way of safely unwrapping optionals: the nil coalescing operator — ??

in this example if x is an optional String, we can use it like:

print(x ?? "value not set")

Manuel Meyer
Manuel Meyer

Written by Manuel Meyer

Freelance Software Developer and Code Strategist.

No responses yet