<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Right, SE-0067 included that initializer with the caveat that implementation wouldn't be possible until the integer protocols were revised. As far as I can see, that makes this a fix that wouldn't need further SE discussion. (The generic init(exactly:) needs an implementation, too.)<div><br></div><div><a href="https://github.com/apple/swift-evolution/blob/master/proposals/0067-floating-point-protocols.md">https://github.com/apple/swift-evolution/blob/master/proposals/0067-floating-point-protocols.md</a><br><br><div id="AppleMailSignature">Nate</div><div><br>On Jan 1, 2018, at 7:01 PM, Xiaodi Wu via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">This would be a good addition to the BinaryFloatingPoint protocol. It's not difficult to implement; it's not present (afaict) simply because BinaryFloatingPoint was designed before BinaryInteger existed.<div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 1, 2018 at 3:58 PM, Kelvin Ma via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">title says it all,, this is kind of annoying when writing some generic FloatingPoint code where both the integral and floating parameters are unfixed.<br></div>
<br>______________________________<wbr>_________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-<wbr>evolution</a><br>
<br></blockquote></div><br></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></div></body></html>