Testing Swift’s ErrorType

Marius Rackwitz: Further investigation via LLDB reveals that the protocol has some hidden requirements. (lldb) type lookup ErrorType protocol ErrorType { var _domain: Swift.String { get } var _code: Swift.Int { get } } It becomes clear how NSError fulfills this definition: it has these properties, backed by ivars, which Swift can access without dynamic … Continue reading Testing Swift’s ErrorType