[swift-evolution] Proposal: disallow nil in favor of .None

Michael Peternell michael.peternell at gmx.at
Mon Apr 11 02:51:25 CDT 2016


Please not!!

If this was an April 1 joke, it's too late.


Von: Paul Young <paulyoungonline at gmail.com>
Betreff: [swift-evolution] Proposal: disallow nil in favor of .None
Datum: 10. April 2016 22:53:18 MESZ
An: "swift-evolution at swift.org" <swift-evolution at swift.org>


Please forgive me if this has already been discussed, but I couldn't find reference to it anywhere.

My proposal is pretty simple – disallow the use of `nil` and require the use of `.None` instead.

I would like to understand if there are any technical (or otherwise) reasons for `nil` to remain, or if it simply a remnant of interop with Objective-C.

Thanks,

Paul



More information about the swift-evolution mailing list