Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
steveklabnik
· 8y ago · 0 comments
That’s not correct, it’s i32. usize has a specific purpose: when you need a length of something in memory.
Comments
[–]
shittyadmin
8y ago
The entire idea of a "main numeric type" is sort of silly - know what data you're dealing with and pick the length accordingly!
[–]
steveklabnik
OP
8y ago
Yeah, I only say "main" here because it's what you should pick if you're not sure.