官术网_书友最值得收藏!

  • Hands-On Design Patterns with Swift
  • Florent Vilmart Giordano Scalzo Sergio De Simone
  • 167字
  • 2021-07-02 14:45:08

Diving into Foundation and the Standard Library

Now that you have had a good refresher of the core language features and the memory model, we can continue our journey with the Standard Library and the Foundation Framework.

The Standard Library is responsible for bringing high-level features, and it provides powerful implementations for common data types, such as strings and numbers. Along with these basic types, it implements efficient storage and algorithms for common data structures, such as arrays, dictionaries, and sets. Finally, it exposes a trove of protocols that can help to reduce boilerplate in your own implementations, as well as implement common features like Equatable, OptionSet, or Collection.

Foundation is at the core of all Apple SDKs, providing a base layer for your programs in Swift, including (but not limited to) networking, file management, persistence, date arithmetic, and more.

In this chapter, we will cover the following topics:

  • Swift's basic types
  • Exploring container types and generics
  • Mastering concurrency with Dispatch
  • Communicating via HTTP with URLSession
主站蜘蛛池模板: 灌云县| 樟树市| 略阳县| 繁昌县| 云安县| 南开区| 溧阳市| 永康市| 彰武县| 调兵山市| 东平县| 都昌县| 吉水县| 龙岩市| 衡南县| 威宁| 安西县| 赤水市| 犍为县| 商河县| 乌海市| 庆阳市| 怀远县| 大荔县| 弋阳县| 沈阳市| 平塘县| 老河口市| 唐河县| 台北市| 肃南| 乡城县| 将乐县| 类乌齐县| 岱山县| 沂源县| 板桥市| 原平市| 韶山市| 德阳市| 勃利县|