Rust has a lot of integer types, but I kinda like distinguishing u64 from usize. It communicates intent.
A usize is probably going to be used as an index, whereas a u64 is probably just a measurement of something.
I don't have a favourite 'just an integer' type in Rust. I was writing a progress function for a Rust program that counts up to 20 input files.
u64 is sometimes fiddly, usize makes me think about indexing, and u32/u16/u8 make me think that something is performance sensitive.
I miss the usize type when I'm not coding in Rust. I find distinguishing between 'an integer representing a quantity' and 'an integer representing an array index' to be very helpful sometimes.
Wilfred Hughes
Shared words: Rust, distinguishing, usize, integer, types, index
Score: 348.2