This is a followsup to I32 vs isize, u32 vs usize .
The discuss there was very helpful, as my code no longer has *32 vs *size confusion.
One issue I still have is taht of ‘isize’ vs ‘usize’. The issue is as follows:
indexing always wants usize
often, I need to store ‘offsets’, which can be negative
My current solution is:
make everythign isize
pay an “as usize” syntactical penalty every time I have to index
Alternatives / suggestions ?