Swift: Ensuring Values are Defined Before Use

From the Apple developer blog:

A primary focus when designing Swift was improving the memory safety of the programming model. There are a lot of aspects of memory safety, so this post will start slow and cover a simple case: how to make sure that variables are initialized with a value before they are used.

Memory Safety: Ensuring Values are Defined Before Use