Over time, I have introduced proposals to make the use of force unwraps more readable, intentional, and maintainable. My proposed solutions included the unwrap or die operator and throwable nil-coalescing. Whether these solutions are suitable for Swift is orthogonal to a more fundamental issue of
My gut feeling is that the fixit for
Insert "!" forms one of the most dangerous enticements for language users, especially those new to Swift.
Eliminating this fixit entirely could lead new users to better solutions while allowing experienced developers to use forced-unwrap in a considered and intentional manner. Before I file a bug report, I thought I'd bring this to the forums for feedback and insights. Thank you in advance.