[swift-evolution] [Proposal] Remove force unwrapping in function signature.
cantrell at pobox.com
Fri Jun 10 21:18:42 CDT 2016
> On Jun 10, 2016, at 7:43 PM, Dave Abrahams via swift-evolution <swift-evolution at swift.org> wrote:
> on Thu Jun 09 2016, Saagar Jha <swift-evolution at swift.org> wrote:
>> Yes, that’s exactly my point. Force unwrapping optionals adds
>> confusion for new users; all too often I see newcomers ending up with
>> the assumption that the force unwrapping takes care of the check for
> ...but, it *does*.
I took Saagar to mean “the assumption that force unwrapping takes care of doing the right thing for them so they don’t ever have to think about nil at all.” Which is indeed quite common in beginner Swift code.
Sadly, there is no compile-time check for mindfulness.
More information about the swift-evolution