Naming Symbols
Swift adopts naming style conventions that reduce the effort required to read and understand source code. In adopting these conventions, the language establishes a baseline for standard and expressive code. These styles enable coders to ignore the way people spell, select, and capitalize symbols and focus instead on code intent. In turn, the conventions add meaning and context to a symbol’s role and utility, making code more self-documenting.
As an opinionated language, Swift has a common center of gravity with strong design principles. Becoming familiar with the various conventions and stylings can be a significant learning challenge, but once mastered, they reduce language friction. They enable you to incorporate nuance and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access