You’ve made it to the end of the tenth part of this series, so let’s summarize:
if letor using
nilyour code will crash.
try?to convert a throwing function into an optional return value, or
try!to crash if an error is thrown.
init?()to make a failable initializer.
SPONSORED Fernando's book will guide you in fixing bugs in three real, open-source, downloadable apps from the App Store. Learn applied programming fundamentals by refactoring real code from published apps. Hacking with Swift readers get a $10 discount!
Link copied to your pasteboard.