Adam Shapiro

Using Guard Statements to Make Optional Binding Variables more Accessible

The golden rule for dealing with optionals is to make sure they are safely unwrapped. Otherwise you are just begging for future unexpected behavior that causes a nil somewhere and crashes your beautiful app. Quick refresher – an optional value may either have a value or nil. Before you can do anything with an optional …

Using Guard Statements to Make Optional Binding Variables more Accessible Read More »