Declaring Variables and Constants

  • Scott Gardner


Programming is largely about solving problems with math, and to do that you need to store values and represent them in your algorithms. Most programming languages share a similar approach to storing values, yet the simplicity or terseness of syntax seems to be a differentiator amongst modern languages. Swift delivers a concise yet logical syntax that creates a harmonious balance between the coder and the compiler. This chapter will show you how to create stored values in Swift as compared with Objective-C, beginning with an explanation of how the two languages differ in approach.


Access Control Compound Type Reference Type Code Completion Logical Syntax 

Copyright information

© Scott Gardner 2014

Authors and Affiliations

  • Scott Gardner
    • 1
  1. 1.NYUS

Personalised recommendations