On Tuesday, 31 May 2016 at 18:55:18 UTC, Gary Willoughby wrote:
Is there any overhead compared with pointer arithmetic in a for loop?

Very very little. The slice will ensure start and stop indexes are in bounds before the loop (and throw an RangeError if it isn't), but inside the loop, it should generate exactly the same code.

Reply via email to