Skip to content
/ Result Public
forked from antitypical/Result

Swift type modelling the success/failure of arbitrary operations.

License

Notifications You must be signed in to change notification settings

wtmoose/Result

 
 

Repository files navigation

Result

Carthage compatible CocoaPods

This is a Swift µframework providing Result<Value, Error>.

Result<Value, Error> values are either successful (wrapping Value) or failed (wrapping Error). This is similar to Swift’s native Optional type, with the addition of an error value to pass some error code, message, or object along to be logged or displayed to the user.

Use

API documentation is in the source.

Integration

  1. Add this repository as a submodule and check out its dependencies, and/or add it to your Cartfile if you’re using carthage to manage your dependencies.
  2. Drag Result.xcodeproj and Box.xcodeproj into your project or workspace. NB: Result.xcworkspace is for standalone development of Result, while Result.xcodeproj is for targets using Result as a dependency.
  3. Link your target against Result.framework and Box.framework.
  4. Application targets should ensure that the framework gets copied into their application bundle. (Framework targets should instead require the application linking them to include Result and Box.)

About

Swift type modelling the success/failure of arbitrary operations.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 97.6%
  • C++ 2.4%