In Swift 2.0, Apple introduced a new way to handle errors (do-try-catch).
And few days ago in Beta 6 an even newer keyword was introduced (try?
).
Also, knew that I can use try!
.
What’s the difference between the 3 keywords, and when to use each?