On Mon, Apr 11, 2016 at 9:56 PM, Brent Royal-Gordon via swift-evolution <swift-evolution@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. Dmitri -- main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if (j){printf("%d\n",i);}}} /*Dmitri Gribenko <griboz...@gmail.com>*/ _______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution