[swift-evolution] [Review] SE-0065 A New Model for Collections and Indices

Dmitri Gribenko gribozavr at gmail.com
Tue Apr 12 04:15:39 CDT 2016

On Mon, Apr 11, 2016 at 9:56 PM, Brent Royal-Gordon via
swift-evolution <swift-evolution at swift.org> wrote:
> (On the other hand, it might be that I'm conceiving of the purpose of `limitedBy` differently from you—I think of it as a safety measure, but you may be thinking of it specifically as an automatic truncation mechanism.)

Hi Brent,

Could you explain what kind of safety do you have in mind?  Swift will
guarantee memory safety even if you attempt to advance an index past
endIndex using the non-limiting overload.


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

More information about the swift-evolution mailing list