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

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
主站蜘蛛池模板: 闵行区| 甘肃省| 金阳县| 原阳县| 建昌县| 洪洞县| 通州市| 故城县| 新乡市| 大姚县| 连平县| 长垣县| 汉沽区| 云和县| 电白县| 哈尔滨市| 台东市| 尼玛县| 岫岩| 弥渡县| 新营市| 内江市| 临夏市| 沐川县| 张家界市| 抚远县| 河北省| 松溪县| 澄城县| 平潭县| 怀集县| 鄢陵县| 贵港市| 华亭县| 旬邑县| 轮台县| 凭祥市| 玛曲县| 博野县| 华宁县| 麟游县|