[swift-evolution] Remove Failable Initializers

Brent Royal-Gordon brent at architechies.com
Thu Mar 3 02:55:18 CST 2016


> I have found that failable initializers really don’t fit in well with Swift’s strict initialization rules (which I think are great). Every time I tried to use them I always had to make sacrifices with having an implicitly unwrapped optional or optional when I shouldn’t.

Are you talking about the "All stored properties of a class instance must be initialized before returning nil from an initializer" error? Because that's being fixed in Swift 2.2.

-- 
Brent Royal-Gordon
Architechies



More information about the swift-evolution mailing list