- 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.
推薦閱讀
- 深入理解Android(卷I)
- Mastering Objectoriented Python
- Web Scraping with Python
- Mastering Spring MVC 4
- 編寫整潔的Python代碼(第2版)
- Mastering Scientific Computing with R
- UVM實戰
- 深入實踐Kotlin元編程
- Getting Started with Polymer
- Training Systems Using Python Statistical Modeling
- 寫給大家看的Midjourney設計書
- 多媒體技術及應用
- TypeScript圖形渲染實戰:2D架構設計與實現
- Software Development on the SAP HANA Platform
- Java多線程并發體系實戰(微課視頻版)