- Mastering macOS Programming
- Stuart Grimshaw
- 72字
- 2021-07-02 22:54:31
Functions
Functions in Swift are more flexible than those of many other languages that you may have used. They'll certainly do most, if not all, the things you would expect when coming from C, Objective C or Java, but they also do more, in that they are also objects, just like any other types.
Function declarations offer considerable flexibility, much more so than Objective C, if you are coming from that background.