Tags

Error Handling

  • Aug 23, 2016

    Values and errors, part 2: eight languages compared

    A concrete look at the languages studied by the Swift developers when designing Swift's approach to error handling. By comparing these to Swift, I'll try to better understand what balance the Swift developers sought on the topics of feature complexity, syntactic efficiency, abstraction, information signalling and safety.

    Swifterror handling

    Read article

  • Aug 21, 2016

    Values and errors, part 1: 'Result' in Swift

    In this article, I'll discuss the Result type in Swift as well as common variations in implementation and approach used for this data type. I'll also look at *why* the type was rejected for inclusion in the standard library and what effect that rejection is likely to have.

    Swiftfundamentalserror handling

    Read article

  • Apr 14, 2016

    Presenting unanticipated errors to users

    In my first truly 'Cocoa' article since restarting Cocoa with Love, I'll talk about presenting errors to the user. In particular, ensuring that errors we didn't expect or plan for are presented in a manner that allows error reporting by users and easier bug fixing.

    error handlingCocoa

    Read article

  • Mar 17, 2016

    Errors: unexpected, composite, non-pure, external.

    Error handling is a topic I plan to visit periodically but it's difficult since 'error' is such a poorly defined term. In this article, I give a clear definition of an error and further define the most common associated complications. The intent is to establish a foundation for future discussions on the topic.

    fundamentalserror handling

    Read article