Re:Apple’s Use of Swift in iOS 13
by untog on Thursday September 26, 2019 @05:49PM
(#21085944)
The one time you should unwrap it is if it's a constant - that way the app will always immediately crash if it's nil. Pretty difficult to not run into a bug like that.
But if you're creating it dynamically you should be guarding and throwing an error.
But if you're creating it dynamically you should be guarding and throwing an error.