- 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/.
推薦閱讀
- 流量的秘密:Google Analytics網站分析與優化技巧(第2版)
- Python 3網絡爬蟲實戰
- 網店設計看這本就夠了
- Jupyter數據科學實戰
- Principles of Strategic Data Science
- OpenStack Networking Essentials
- Mastering Apache Storm
- C指針原理揭秘:基于底層實現機制
- Mockito Essentials
- Building Slack Bots
- Penetration Testing with the Bash shell
- Python編程基礎教程
- 從零開始構建深度前饋神經網絡:Python+TensorFlow 2.x
- 計算機應用基礎案例教程(第二版)
- Learning Gerrit Code Review