Optional types in Swift
At work, I code in either Java, Javascript (AngularJS, Node.js) or CSS via bootstrap, so when I am coding in Swift, it is strictly something I do in my free time. Hence I make a point to keep notes of stuff that I learn which can potentially serve as a future reference for me. Swift (Apple's new programming language), allows for the presence optional type or optionals . This concept is very well explained in this Ray Wanderlich podcast , at time 27:03 (mins:secs). As mentioned in that podcast, the designers of Swift decided to ensure that you have no null ( nil ) references in your code. So in languages such as Java, say you have an object called person which represents a person , that has information about where the person lives i.e. address property. There is some more detail in where the person lives i.e. the name of the street i.a. street property. So now if we want to what street the person lives on, you would do person.address.street . That way you tr...