News for hackers. Stuff that matters.
Re:Null Object Pattern in Swift by peterkelly on Wednesday November 11, 2015 @09:25PM (#10550901)
Or you could do this:

    phoneCallRegistry.callWithIdentifier(identifier)?.hangUp()
The ? means that hangUp() will not be called if callWithIdentifier(identifier) returns nil.

There are no comments on this comment yet.