- General Changes
- Loops
- Conditionals
- To Integers and Beyond!
- Wrapping Up
Wrapping Up
Given how important control statements are to programming, the major changes in Swift, especially to the switch statement, aren’t that surprising. Most of the changes are for the better, and while some may cause a few “style guide” conflicts in the short term, the added safety and convenience in some of the constructs are very welcome.
The next chapter takes a look at optionals—a new feature that has the potential to change some of the code patterns we take for granted and make for more compact and readable source code.