Understand the structure of The Swift Programming Language (TSPL)
mainThe Swift documentation is organized into three distinct parts, each serving a different purpose:
- A Swift Tour: A high-level overview designed to be read in one sitting. It provides syntax and a taste of the language, making it suitable for beginners or experienced programmers looking to get started quickly. It relies on the Guide for in-depth explanations.
- Language Guide: A pedagogical, step-by-step instructional text. It follows a linear order (Basic, Data Modeling, and Advanced topics) and uses examples to explain how features work and when to use them.
- Language Reference: An exhaustive, technical description of the language following its formal grammar. It is not instructional and is intended for unambiguous, detailed lookups. It uses a predictable four-part structure: brief description, code outline, detailed prose, and formal grammar.