[swift-evolution] protocol-oriented integers (take 2)

Max Moiseev moiseev at apple.com
Fri Jan 27 18:50:27 CST 2017


Renaming Arithmetic to Number (and having SignedNumber) might actually end up being a win, since we need to provide SignedNumber to maintain source code compatibility anyway.

> On Jan 27, 2017, at 8:34 AM, Xiaodi Wu via swift-evolution <swift-evolution at swift.org> wrote:
> 
> I'd always just assumed that Arithmetic was chosen so that SignedArithmetic wouldn't clash with the old SignedNumber. If that's not an issue, definitely agree that Number is the superior name.
> On Fri, Jan 27, 2017 at 08:30 T.J. Usiyan via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
> Oh, I misread the arrows in that diagram and this makes much more sense now.
> 
> Thanks.
> 
> On Fri, Jan 27, 2017 at 9:14 AM, Stephen Canon <scanon at apple.com <mailto:scanon at apple.com>> wrote:
> The bitwise stuff isn't on ArithMETic | ARITHmetic | Number | whatever.
> 
>> On Jan 27, 2017, at 9:13 AM, T.J. Usiyan via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> 
>> Regarding `Number` or `Numeric`: Does everything in Arithmetic apply to complex numbers and do we want it to? The bitwise stuff is where I think that there might be a mismatch.
>> 
>> On Thu, Jan 26, 2017 at 2:26 PM, Dave Abrahams via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> 
>> on Sun Jan 15 2017, Stephen Canon <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> 
>> > Responding to the thread in general here, not so much any specific email:
>> >
>> > “Arithmetic” at present is not a mathematically-precise concept, and
>> > it may be a mistake to make it be one[1]; it’s a
>> > mathematically-slightly-fuzzy “number” protocol.
>> 
>> 
>> In that case, should we consider renaming it to “Numeric” or even
>> “Number?”  That would at least remove the question about how to
>> pronounce it.
>> 
>> 
>> --
>> -Dave
>> 
>> _______________________________________________
>> swift-evolution mailing list
>> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
>> 
>> _______________________________________________
>> swift-evolution mailing list
>> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
> 
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170127/35a8f327/attachment.html>


More information about the swift-evolution mailing list