So I've recently been learning Swift (3.1), and I've had problems with understanding the purpose/practical usage of optionals.
I've researched several sites, and all they talk about is how to use them, not why or when they are used (Sort of why, but not in a way that seems applicable to me). My citations are at the end.
I understand about how its either nil or a value, and how you need to unwrap it's possible value with !, as well as how to create auto-unwrapping optionals.
My main question is just, what are the practical uses of optionals? Apple's Swift handbook said that optionals are the central point of most of Swift's most powerful features, so I feel like it is a concept very worthwhile to fully understand. I fully understand how to write them, I just can't grasp why or when you would use them.
Citations:
https://www.tutorialspoint.com/swift/swift_optionals.htm
http://blog.teamtreehouse.com/understanding-optionals-swift
Thank you for your time.