Why does the following not work in Swift?
if someObject === nil { }
You have to do the test using the == operator such as
if someO
My first instinct would be that nil is not a class instance, but a reference. So someObject cannot be an equivalent class instance to nil.
nil
someObject