Michael Lamparski
Michael Lamparski
One thing that's bothersome about Python's solution is that `-0` is indistinguishable from 0, when ideally you would want it to represent the index that's one past the end. For...
`wrapping_index` sounds to me like it has promise, and what's more, it can be experimented with outside of the stdlib. My thoughts on `wrapping_slice` (or anything similar like `wrapping_index` with...
I guess there are really multiple distinct things that python's negative indices are useful for, none of which it is really ideal for, and which may each be better served...
Right, it's very different from python's `count` which in Rust you can simply use a `RangeFrom` for (using the built-in syntax `0..`). [Iterator documentation](https://doc.rust-lang.org/std/iter/trait.Iterator.html)
I'll bump this just to point out the comment I recently added to the PyO3 issue, which is basically that `rust-cpython` uses `&[Cell]` and `&[ReadOnlyCell]` to fix this sort of...