没有合适的资源?快使用搜索试试~ 我知道了~
Swift-SwiftEither:Swift中理想错误处理的PoC
共11个文件
plist:2个
swift:2个
xcscheme:1个
需积分: 9 0 下载量 42 浏览量
2021-05-30
19:47:00
上传
评论
收藏 10KB ZIP 举报
温馨提示
迅捷 Swift 中的任一模式实现 概要 import SwiftEither // helpers struct Error { var reason: String init ( _ reason : String ) { self . reason = reason } } func success ( s : String ) -> Either< String> { return Either ( success : s) } func failure ( s : String ) -> Either< String> { return Either ( failure : Error (s)) } // 1. basic use let x = success ( " foo " ) // x repres
资源推荐
资源详情
资源评论
收起资源包目录
Swift-SwiftEither-master.zip (11个子文件)
Swift-SwiftEither-master
SwiftEither
SwiftEither.h 513B
Info.plist 826B
Either.swift 3KB
SwiftEitherTests
Info.plist 753B
SwiftEitherTests.swift 4KB
.travis.yml 35B
README.md 2KB
Makefile 74B
SwiftEither.xcodeproj
xcshareddata
xcschemes
SwiftEither.xcscheme 4KB
project.pbxproj 14KB
.gitignore 495B
共 11 条
- 1
资源评论
穆庭秋
- 粉丝: 26
- 资源: 4671
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功