2016-08-03 0:46 GMT+03:00 Xiaodi Wu <[email protected]>:

> It's not that << will overflow and / will not. Substitute * for / and the
> argument would be the same. The difference is that << traps when you shift
> more than the total number of bits but does *not* trap when you shift
> numbers off as would arithmetic exponentiation; * traps on overflow. Thus,
> what << is concerned about is the bits (as it should), but * is concerned
> about the max representable value.


Substitute * for / and my argument would also be the same :)
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to