Unwrapping values is one of the most common Swift tasks and it is unnecessarily complex.
Consider the following solutions:
- Introduce an
unwrap
keyword forOptional
values - Introduce an
Unwrappable
protocol for associated-value enumerations. - Apply
unwrap
to non-Optional
values.