- Reactive Programming with Swift 4
- Navdeep Singh
- 110字
- 2021-06-24 18:58:02
Default parameter values must be public
The compiler now checks accessibility of referenced objects a bit more strictly; non-literal values that you want to use in public functions as arguments should also be public. Among other things, this exposes an opportunity for optimizing access to the value at the call site. As this may involve API design, the migrator does not suggest fixes, although there are some possibilities for you to consider as an API author:
- Making the referenced default values public
- Providing public functions that return a sensible default value
In both cases, consider the impact of exposing a new API, ensuring that you document your public symbols.
推薦閱讀
- Practical Windows Forensics
- C語言程序設(shè)計(jì)
- 深入淺出RxJS
- 深入理解Android:Wi-Fi、NFC和GPS卷
- 零基礎(chǔ)學(xué)Python網(wǎng)絡(luò)爬蟲案例實(shí)戰(zhàn)全流程詳解(入門與提高篇)
- 軟件品質(zhì)之完美管理:實(shí)戰(zhàn)經(jīng)典
- Natural Language Processing with Java and LingPipe Cookbook
- Windows Phone 8 Game Development
- 奔跑吧 Linux內(nèi)核
- 從零開始學(xué)Unity游戲開發(fā):場(chǎng)景+角色+腳本+交互+體驗(yàn)+效果+發(fā)布
- Python計(jì)算機(jī)視覺與深度學(xué)習(xí)實(shí)戰(zhàn)
- Socket.IO Cookbook
- Java基礎(chǔ)案例教程(第2版)
- 寫給所有人的編程思維
- C#灰帽子:設(shè)計(jì)安全測(cè)試工具