<div dir="ltr">Your pointing to two mutually exclusive protocols proves the point. If I want to write a generic function for a numerical type which can be added, I can&#39;t just require that the type conforms to IntegerArithmeticType because that excludes all the floating point types. Protocols for various numerical functions, e.g. NumericalArithmeticType, would be handy,</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 11, 2016 at 4:55 PM, Joanna Carter via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
&gt; It’s inconvenient that structs can’t inherit, and so things like Int and Double aren’t known as numbers. Should there be a Number protocol that encompasses all things number-like?<br>
<br>
</span>Taje a look at the IntegerType and FloatingPointType<br>
<br>
--<br>
Joanna Carter<br>
Carter Consulting<br>
<br>
(de mon iPhone)<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<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/mailman/listinfo/swift-evolution</a><br>
</div></div></blockquote></div><br></div>