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

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
主站蜘蛛池模板: 岱山县| 牙克石市| 蒲城县| 察隅县| 祁门县| 洞口县| 扶绥县| 广汉市| 米泉市| 定州市| 承德县| 霍州市| 龙泉市| 舒城县| 漳平市| 卫辉市| 林西县| 河津市| 漾濞| 称多县| 黎平县| 浙江省| 夏河县| 丰城市| 庆阳市| 于田县| 綦江县| 屯留县| 华宁县| 安庆市| 余庆县| 奈曼旗| 宁陵县| 青铜峡市| 南安市| 利川市| 广元市| 湟源县| 敦煌市| 从江县| 江源县|