Psst! Come here, I’ll let you in on a secret.

Question marks, exclamation marks, chaining, coalescing? Optionals must be some Swift language magic, right?
You couldn’t be further from the truth. Open Xcode and type this in:
Optional<String>.none()Now, quick, before anyone sees you!
CMD+Click on the word Optional. Press enter.

Like breaking out of the Matrix, we finally see the code that makes up our world — the world of the the Swift Standard Library. The source code for Optional.
@frozen
public enum Optional<Wrapped>: ExpressibleByNilLiteral {
case none
case some(Wrapped)
}Your whole life was a lie.
Optionals were a 2-case enum the entire time.
It’s true.


