Swift is an open source programming language that supports multiple programming paradigms and compiled. It was released by Apple at WWDC (Apple Developer Conference) in 2014 and is used to develop iOS, OS X and watchOS applications.
Swift combines the best of C and Objective-C without the limitations of C compatibility.
Swift can use the same running environment as Objective-C on Mac OS and iOS platforms.
Swift constants syntax
Once a constant is set, its value cannot be changed while the program is running.
Constants can be any data type such as: integer constants, floating point constants, character constants or string constants. There are also constants of enumeration types:
Constants are similar to variables. The difference is that the value of a constant cannot be changed once it is set, while the value of a variable can be changed at will.
Swift constants example
import Cocoa let constA = 42 print(constA)