A little known fact* is that the inspiration behind the 1987 chart topper “Never Gonna Give You Up” came in the form of assembly code delivered to Rick Astley while in a feverish dream state. The prevailing message of this lucid epiphany came as an enumeration: *possibly made up enum ThingsRickAstleyWontDo { case GiveYouUp case LetYouDown case RunAround case DesertYou } // Implementation // assign the type ThingsRickAstleyWontDo to the variable var heIsNeverGoingTo = ThingsRickAstleyWontDo.GiveYouUp heIsNeverGoingTo = .LetYouDown heIsNeverGoingTo = .RunAround heIsNeverGoingTo = .DesertYou Out of the box Swift comes with a collection of built in data types for your declarative pleasure; Int, String, Double, Array etc… but Swift also allows you to define your own custom data types.
I just wanna tell you how I'm feeling
Rick Astley