[swift-evolution] Failable Initializer Suggestion

Tino Heth 2th at gmx.de
Sun Dec 27 10:13:53 CST 2015

> How do you guys think of that?
Makes sense.
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...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151227/70a55a79/attachment.html>

More information about the swift-evolution mailing list