[swift-evolution] [Pitch] Add the DefaultConstructible protocol to the standard library

Tino Heth 2th at gmx.de
Mon Dec 26 13:12:29 CST 2016

There is an older discussion that is somewhat linked to this topic:
"Removing the empty initialiser requirement from RangeReplaceableCollection"
https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160704/023642.html <https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160704/023642.html>

Imho "DefaultConstructible" types can be very handy, but so far, it seems no one has presented a single use case that is important enough to justify the inclusion in the stdlib.
On the other hand, I'm quite sure that there's much functionality in the stdlib that many people consider as superfluous…

I guess adding the protocol wouldn't have a big impact on size, so for for me, the question is "Does this protocol confuse users of Swift?", which I'd answer with "yes, possibly" (unless someone comes up with a name that is more intuitive).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161226/9fd3bc08/attachment.html>

More information about the swift-evolution mailing list