Skip to content

4.1.0

Compare
Choose a tag to compare
@ikesyo ikesyo released this 01 Jan 13:18
· 18 commits to master since this release

NEW

  • Add compatibility with Swift 5's Result (#278)
    • Add Result.Success typealias
    • Add Result.Failure typealias
    • Add init(catching body: () throws -> Success) and deprecate init(attempt f: () throws -> Value)
    • Add func get() throws -> Success and deprecate func dematerialize() throws -> Value

See https://github.com/apple/swift-evolution/blob/master/proposals/0235-add-result.md and https://forums.swift.org/t/accepted-with-modifications-se-0235-add-result-to-the-standard-library/18603 for further information of the Swift 5's Result.