Re:Apple’s Use of Swift in iOS 13
by mruts on Thursday September 26, 2019 @06:52PM
(#21086465)
A usrful error message?
[ Parent
| on HN ]
This isn't always possible.
Why not? I always fold or map my option types. Sometimes I return None and caller handles it, sometimes I print a useful and informative error message. One should never ever directly unwrap an option value. In fact, some languages and libraries simply don’t allow it.