[swift-evolution] Failable Initializer Suggestion
2th at gmx.de
Sun Dec 27 10:13:53 CST 2015
> How do you guys think of that?
Failable init has its roots in Objective-C, throws is a better fit for Swift — but it is not trivial to change all Cocoa class to throw instead of returning nil (at least in theory — most likely many classes don't have that many reasons for a possible error).
Imho failable init should be removed again (but in a timeframe beyond the normal range of this list ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution