[swift-users] Range<UInt64>.count can abort

Dmitri Gribenko gribozavr at gmail.com
Fri Apr 15 18:45:21 CDT 2016

On Fri, Apr 15, 2016 at 4:41 PM, Jens Alfke <jens at mooseyard.com> wrote:
> --Jens     [via iPhone]
>> On Apr 15, 2016, at 4:26 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>> The distance is signed so that we can represent negative distances.
>> r.distance(from:to:) should be able to measure distances backwards.
> Yeah, makes sense in general, just not for this particular case...
>> We are aware of this issue, but we don't know of a good solution.
>> We'd appreciate your suggestions.
> Add Int128! ;-)
> Ok, maybe that just pushes the problem further down the road.


> How about making Distance be Double? ;-)

Double only has 53 bits of precision.


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the swift-users mailing list