Matt Bridges

Recent Posts

Swift Optionals: How Swift “Defines Away” Common Programming Errors…Sort Of

Posted by Matt Bridges on Jun 3, 2015 2:27:00 PM

Eight pages in to Apple’s new Swift language book, there’s a passing mention of “optional” values, and how these values can be nil. What you might have missed is that this also means that non-optional types can never be nil. Coming from Objective-C or even Java or C#, this may seem surprising (it was for me):

Read More

Topics: Mobile, Development, iOS, Swift