Skip to content

Instantly share code, notes, and snippets.

@623637646
Last active December 13, 2023 09:14
Show Gist options
  • Save 623637646/9d523e1e499b4c7b66ed7b73112e2f01 to your computer and use it in GitHub Desktop.
Save 623637646/9d523e1e499b4c7b66ed7b73112e2f01 to your computer and use it in GitHub Desktop.
Swift VS Objective-C
swift vs Objective-C
`?` 可选值 显式可选 vs 隐式可选
异步编程方式 async 协程编程 vs OKBAsyncLoader
enum 枚举 可携带变量 vs 不可携带变量
函数&方法抛异常 显式抛异常 vs 隐式抛异常
并发 Task结构化并发 vs 非结构化并发
模型序列化反序列化 原生支持Codable vs 第三方库支持
泛型 强大的泛型 vs 鸡肋的泛型
响应式编程,观察者模式 原生Combine vs 第三方库 RxSwift, RecativeCocoa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment