- Reactive Programming with Swift 4
- Navdeep Singh
- 77字
- 2021-06-24 18:58:02
Differentiating between single-tuple and multiple-argument function types
f: (Void) -> ()
When using f: (Void) -> () for the type of a function argument, it is generally meant to be f: () -> (), so the migrator will suggest that you use this type instead. Otherwise, with the new rules in SE-0110 for Swift 4, you will need to call the f function as f(()).
To read more about the Swift proposals, you can visit https://Apple.github.io/swift-evolution/.
推薦閱讀
- Learning Microsoft Windows Server 2012 Dynamic Access Control
- Android和PHP開發最佳實踐(第2版)
- Android 9 Development Cookbook(Third Edition)
- Python Tools for Visual Studio
- Hands-On Functional Programming with TypeScript
- IBM Cognos Business Intelligence 10.1 Dashboarding cookbook
- 21天學通C++(第5版)
- 測試架構師修煉之道:從測試工程師到測試架構師
- MyBatis 3源碼深度解析
- 現代CPU性能分析與優化
- Solr權威指南(下卷)
- Instant AppFog
- 生成藝術:Processing視覺創意入門
- 深入理解C++11:C++11新特性解析與應用
- 鋒利的SQL