Skip to content

Swift 5.0 and Result in Standard Library #696

@larryonoff

Description

@larryonoff

I think it's time to start preparation for the new features of Swift 5.0, i.e. Result that has been recently accepted to the standard library, see
https://github.com/apple/swift-evolution/blob/master/proposals/0235-add-result.md.

The issue that I see that migration to the Swift.Result is a breaking change since different signatures.

https://github.com/apple/swift-evolution/blob/master/proposals/0235-add-result.md

public enum Result<Value, Error: Swift.Error> {
    case value(Value), error(Error)
}

when https://github.com/antitypical/Result

public enum Result<Value, Error: Swift.Error> {
	case success(Value)
	case failure(Error)
}

I totally respect to https://github.com/antitypical/Result, but I think that it's better using Standard Library.

Any community thought about?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions