[swift-dev] Possible Typo in the Swift 4 snapshot's implementation of FixedWidthInteger

David Sweeris davesweeris at mac.com
Tue May 23 15:02:29 CDT 2017


> Proposal link: https://github.com/apple/swift-evolution/blob/master/proposals/0104-improved-integers.md <https://github.com/apple/swift-evolution/blob/master/proposals/0104-improved-integers.md>

Is this correct? The “*" function has the “by” argument label and the “/“ function doesn’t?
    public func multipliedFullWidth(by other: Self) -> (high: Self, low: Self.Magnitude)
    public func dividingFullWidth(_ dividend: (high: Self, low: Self.Magnitude)) -> (quotient: Self, remainder: Self)
(These were copy/pasted from Xcode. There are a couple other differences between the snapshot and the proposal… that’s why the functions’ signatures don’t completely match.)

I glanced over the relevant mailing list threads, but didn’t see any discussion on the matter. Dunno, maybe I just missed it. Anyway, just thought I’d pass along what looks to me like a simple typo.

- Dave Sweeris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20170523/bc7a5fb0/attachment.html>


More information about the swift-dev mailing list