[swift-evolution] [Review] SE-0104: Protocol-oriented integers
scanon at apple.com
Thu Jun 23 11:16:47 CDT 2016
> On Jun 23, 2016, at 2:23 AM, Félix Cloutier via swift-evolution <swift-evolution at swift.org> wrote:
> What is the cost of heterogeneous comparison?
Smaller-than-wordsize comparisons will fall out for free in most cases. For word size and larger types, there’s one extra test in some cases, but the (very small) added cost is vastly preferable to people rolling their own workarounds and getting it wrong.
More information about the swift-evolution