March 2017
Intermediate to advanced
226 pages
5h 13m
English
Swift is crammed with power features. These features mean Swift code faces wrapping challenges you don’t encounter in many languages, especially C-like ones. Its complex language elements create an unusually dense declaration style.
Good code layout takes idiomatic language features into account to enhance line-by-line readability. Well-considered choices enable you to focus on code meaning and design intent rather than drawing attention to the minutia of wrapping and bracing. There’s an art to hiding structure and emphasizing intent.
This section explores the basics of spacing and bracing and how you make good choices for both.
I generally avoid the spacing vs. tabs debate. It doesn’t ...
Read now
Unlock full access