HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by kiriakasis | Hacker News Reader
Parent
Full thread
kiriakasis
·
the main numeric type is usize
View on HN
steveklabnik
·
That’s not correct, it’s i32. usize has a specific purpose: when you need a length of something in memory.
shittyadmin
·
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
·
Yeah, I only say "main" here because it's what you should pick if you're not sure.
Reply on news.ycombinator.com