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

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
主站蜘蛛池模板: 德兴市| 石泉县| 苍山县| 邻水| 咸丰县| 余干县| 仪征市| 固镇县| 安化县| 密山市| 天柱县| 平定县| 巴中市| 兴业县| 启东市| 武冈市| 申扎县| 宁武县| 朝阳市| 张家界市| 梅河口市| 象州县| 镇坪县| 岳西县| 阜康市| 济源市| 昭苏县| 浪卡子县| 巫山县| 潮安县| 郎溪县| 林甸县| 望江县| 西宁市| 湖南省| 普兰县| 永新县| 乌鲁木齐市| 河池市| 鄂伦春自治旗| 乳山市|