Proposal: disallow nil in favor of .None

(Michael Peternell) #1

Please not!!

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


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

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.