<https://gist.github.com/moiseev/62ffe3c91b66866fdebf6f3fcc7cad8c>
public protocol Arithmetic { init?<T : BinaryInteger>(exactly source: T) } public protocol BinaryInteger : Arithmetic { init?<T : FloatingPoint>(exactly source: T) } Should the `init?(exactly:)` initializers belong to the same protocol? Would this allow generic conversions between integer and floating-point types? For example, a failable `numericCast` function. -- Ben _______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution