[swift-evolution] [Pitch] Add the DefaultConstructible protocol to the standard library
David Sweeris
davesweeris at mac.com
Mon Dec 26 14:03:12 CST 2016
> On Dec 26, 2016, at 11:42, Adam Nemecek <adamnemecek at gmail.com> wrote:
>
> > For integers, 0 is an additive identity. Is there a reason it should be given special treatment over 1, the multiplicative identity?
>
> E.g. for statistical reasons. When I have a collection of users with age etc it makes sense to ask what is the combined age of the collection? What is the semantic meaning of multiplying their ages?
"Age" is an additional layer of semantics beyond just "a numerical value".
- Dave Sweeris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161226/914d6121/attachment.html>
More information about the swift-evolution
mailing list