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

Jens Alfke jens at mooseyard.com
Fri Apr 15 18:41:52 CDT 2016

--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? ;-)


More information about the swift-users mailing list