Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
builtin: documentation should clarify how len() behaves #28759
It isn't easy to make a slice with len > maxint.
And this code:
eventually dies with
I'm out of ideas for how to actually manufacture a slice with a length bigger than maxint (without using unsafe). And I'm pretty sure that's by design.
The language does not permit the number of elements in a slice to exceed the maximum value of