Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text are shown as follows: "Finally, use the console print function to output the content of each error variable."

Folder names, filenames, file extensions, pathnames, include file names in text are shown as follows: "Launch Xcode as before, and create a new playground named Create a Variable.playground."

A block of code is set as follows:

let name = "John Doe"
var address = "201 Main Street"
print("\(name) lives at \(address)")

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog ...

Get Beginning Swift 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.