- Hands-On Design Patterns with Swift
- Florent Vilmart Giordano Scalzo Sergio De Simone
- 142字
- 2021-07-02 14:45:08
Summary
In this chapter, we explored the origins of ARC, the performant memory management paradigm available in Swift. With great power comes great responsibility, so you're still required to design your memory model with ARC in mind; failing to do so will lead to memory leaks or crashes caused by dangling pointers. By now, you should be comfortable with the advantages and drawbacks of both weak and unowned references. You should also understand why weak or unowned don't apply to value types. Last but not least, you should now be comfortable with setting your project up to efficiently debug memory with the tools from Xcode.
ARC sits at the compiler level, injected into your code as it is built. In the next chapter, we'll continue to refresh the basics and stretch our muscles, as we explore Foundation and the standard library.
- 程序員修煉之道:從小工到專家
- 云計算環(huán)境下的信息資源集成與服務(wù)
- 虛擬化與云計算
- MongoDB管理與開發(fā)精要
- 數(shù)據(jù)庫開發(fā)實踐案例
- 文本挖掘:基于R語言的整潔工具
- 商業(yè)分析思維與實踐:用數(shù)據(jù)分析解決商業(yè)問題
- Lean Mobile App Development
- 中國數(shù)字流域
- 網(wǎng)站數(shù)據(jù)庫技術(shù)
- 大數(shù)據(jù)架構(gòu)商業(yè)之路:從業(yè)務(wù)需求到技術(shù)方案
- Flutter Projects
- 企業(yè)主數(shù)據(jù)管理實務(wù)
- 大數(shù)據(jù)數(shù)學基礎(chǔ)(R語言描述)
- 中國云存儲發(fā)展報告