[swift-evolution] Remove Failable Initializers

Антон Жилин antonyzhilin at gmail.com
Sun Mar 6 03:34:32 CST 2016


Without adding more arguments, I agree with what has been said before me.
Failable initializers replace factory methods in other languages, fitting
into Swift error model.
Basically, init() behaves as  `(Args)->Self`  function, and should be able
to express errors as other functions: `(Args)->Self?`, `(Args)
throws->Self`.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160306/930d5ac7/attachment.html>


More information about the swift-evolution mailing list