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 ...
Get Swift Style now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.