- 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/.
推薦閱讀
- 觸·心:DT時代的大數(shù)據(jù)精準(zhǔn)營銷
- Developing Middleware in Java EE 8
- Java 9 Programming Blueprints
- MariaDB High Performance
- Visual Basic程序設(shè)計實踐教程
- Apache Spark 2.x for Java Developers
- Android玩家必備
- C陷阱與缺陷
- Neo4j 3.x入門經(jīng)典
- 計算機(jī)應(yīng)用基礎(chǔ)案例教程(第二版)
- Java 11 and 12:New Features
- 高性能MVVM框架的設(shè)計與實現(xiàn):San
- Unreal Engine Game Development Cookbook
- Mastering Data Analysis with R
- 少年小魚的魔法之旅:神奇的Python